Thread (6 messages) 6 messages, 2 authors, 2009-10-13

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

flat view

From: David Miller <hidden>
Date: 2009-10-13 10:18:20
Also in: lkml

From: Eric Dumazet <redacted>
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 <redacted>
Looks good, applied, thanks Eric!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help