aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-05-30 09:16:53 -0700
committerEthan Chen <intervigil@gmail.com>2015-08-05 13:13:27 -0700
commitc8801d8920a4a9e2e882bdf16410fea4277ace2d (patch)
tree91c02c4c1a3bc7a3d5945c11227002aef8b1aea3 /net/lapb/lapb_subr.c
parentbf4c33b3d58493e61c545a890f74fddc32e28564 (diff)
udp: fix behavior of wrong checksums
We have two problems in UDP stack related to bogus checksums : 1) We return -EAGAIN 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: I9355321ac7ee564d56c342fa7738b918052bf308 Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions