diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-10-09 04:43:40 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-13 03:16:54 -0700 |
commit | 85584672012ee0c3b7b8e033a1ecf7c11878e45f (patch) | |
tree | f35b38f084453e2d7260d4a7a8d13f2a01641664 /include | |
parent | 9652041da18a1a1d9a0b7ebd9eef16bd712be38a (diff) | |
download | linux-85584672012ee0c3b7b8e033a1ecf7c11878e45f.tar.gz linux-85584672012ee0c3b7b8e033a1ecf7c11878e45f.tar.bz2 linux-85584672012ee0c3b7b8e033a1ecf7c11878e45f.zip |
udp: Fix udp_poll() and ioctl()
udp_poll() can in some circumstances drop frames with incorrect checksums.
Problem is we now have to lock the socket while dropping frames, or risk
sk_forward corruption.
This bug is present since commit 95766fff6b9a78d1
([UDP]: Add memory accounting.)
While we are at it, we can correct ioctl(SIOCINQ) to also drop bad frames.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions