Re: [PATCH] udp: Fix udp_poll() and ioctl()

David Miller
2009-10-13T10:18:14Z

From: Eric Dumazet <eric.dumazet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Date: Fri, 09 Oct 2009 16:43:40 +0200

> [PATCH] udp: Fix udp_poll()
>
> 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

Looks good, applied, thanks Eric!