aboutsummaryrefslogtreecommitdiffstats
path: root/net/ceph/mon_client.c
diff options
context:
space:
mode:
authorHarry Lin <mrregi24@gmail.com>2015-07-09 13:00:54 +1000
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-22 16:35:29 -0800
commit5080905535c3c977a96a0ef7faaa5095dafd7760 (patch)
tree22ad14e07bf644b33640ded8bfbe6bde6b4b1d99 /net/ceph/mon_client.c
parent2acd51f51ffd6e14b24d812da47594f53d917378 (diff)
downloadkernel_samsung_smdk4412-5080905535c3c977a96a0ef7faaa5095dafd7760.tar.gz
kernel_samsung_smdk4412-5080905535c3c977a96a0ef7faaa5095dafd7760.tar.bz2
kernel_samsung_smdk4412-5080905535c3c977a96a0ef7faaa5095dafd7760.zip
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 'net/ceph/mon_client.c')
0 files changed, 0 insertions, 0 deletions