commit | 85584672012ee0c3b7b8e033a1ecf7c11878e45f | [log] [tgz] |
---|---|---|
author | Eric Dumazet <eric.dumazet@gmail.com> | Fri Oct 09 04:43:40 2009 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Oct 13 03:16:54 2009 -0700 |
tree | f35b38f084453e2d7260d4a7a8d13f2a01641664 | |
parent | 9652041da18a1a1d9a0b7ebd9eef16bd712be38a [diff] |
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>