]> Git Repo - linux.git/commit
net: keep original skb which only needs header checking during software GSO
authorJason Wang <[email protected]>
Fri, 19 Sep 2014 08:04:38 +0000 (16:04 +0800)
committerDavid S. Miller <[email protected]>
Mon, 22 Sep 2014 18:57:08 +0000 (14:57 -0400)
commitcecda693a969816bac5e470e1d9c9c0ef5567bca
treeddc86a719057aeeec4616b4a3d762418c11ea3e9
parentb749fc9bff50013182edf2371d7f6c6796aed808
net: keep original skb which only needs header checking during software GSO

Commit ce93718fb7cdbc064c3000ff59e4d3200bdfa744 ("net: Don't keep
around original SKB when we software segment GSO frames") frees the
original skb after software GSO even for dodgy gso skbs. This breaks
the stream throughput from untrusted sources, since only header
checking was done during software GSO instead of a true
segmentation. This patch fixes this by freeing the original gso skb
only when it was really segmented by software.

Fixes ce93718fb7cdbc064c3000ff59e4d3200bdfa744 ("net: Don't keep
around original SKB when we software segment GSO frames.")

Cc: David S. Miller <[email protected]>
Cc: Eric Dumazet <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/core/dev.c
This page took 0.052976 seconds and 4 git commands to generate.