summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-05-12 01:24:41 +0300
committerDavid S. Miller <davem@davemloft.net>2017-05-12 04:32:48 +0300
commitf6ba8d33cfbb46df569972e64dbb5bb7e929bfd9 (patch)
treea341e4360d881c74496da6f86d7127a9ffe65191 /scripts
parent4e3c60ed2f594e4ec6bb81d71ef6993e60f740d8 (diff)
downloadlinux-f6ba8d33cfbb46df569972e64dbb5bb7e929bfd9.tar.xz
netem: fix skb_orphan_partial()
I should have known that lowering skb->truesize was dangerous :/ In case packets are not leaving the host via a standard Ethernet device, but looped back to local sockets, bad things can happen, as reported by Michael Madsen ( https://bugzilla.kernel.org/show_bug.cgi?id=195713 ) So instead of tweaking skb->truesize, lets change skb->destructor and keep a reference on the owner socket via its sk_refcnt. Fixes: f2f872f9272a ("netem: Introduce skb_orphan_partial() helper") Signed-off-by: Eric Dumazet <edumazet@google.com> Reported-by: Michael Madsen <mkm@nabto.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions