aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarry Lin <mrregi24@gmail.com>2015-07-09 13:00:54 +1000
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-03-18 01:51:05 +0100
commit261dd7b3b8aaa18bc3f2d4d665c66a3ccb8f57f8 (patch)
tree8442bf33f40c71755993279f3dbe950c62e46da5 /include
parentbf0a5dfef52ed642a596f44749b58bfd652cc65c (diff)
downloadkernel_samsung_smdk4412-261dd7b3b8aaa18bc3f2d4d665c66a3ccb8f57f8.zip
kernel_samsung_smdk4412-261dd7b3b8aaa18bc3f2d4d665c66a3ccb8f57f8.tar.gz
kernel_samsung_smdk4412-261dd7b3b8aaa18bc3f2d4d665c66a3ccb8f57f8.tar.bz2
udp: fix behavior of wrong checksums
We have two problems in UDP stack related to bogus checksums : 1 ) We return -EGAIN to application even if receive queue is not empty. This breaks applications using edge trigger epoll() 2 ) Under UDP flood, we can loop forever without yielding to other processes, potentially hanging the host, especially on non SMP. This patch is an attempt to make things better. We might in the future add extra support for rt applications wanting to better control time spent doing a recv() in a hostile environment. For example we could validate checksums before queuing packets in socket receive queue. Change-Id: Ic25820228fd735e25a850951e059bf75ae39b653 Signed-off-by: Eruc Dumazet <edumazet@google.com> Cc: Willem de Brujin <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions