aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-06-30 13:53:41 -0700
committerAriel Yin <ayin@google.com>2016-07-18 21:23:30 +0000
commit0b0aa99b69760797394fce2c4e2df5523c3500e4 (patch)
treeed36a76daf009b6459ea7a4a2b33a410d22a77ea /net/unix/af_unix.c
parent292a15a339e1da3b34c3468c2c014c7bbee57719 (diff)
UPSTREAM: udp: fix behavior of wrong checksums
(cherry pick from commit a3cfde2a311c3679b414b46e29d1a184edf29b0a) 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. Bug: 29507402 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/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions