net: drop the packet when fails to do software segmentation or header check
Subsystems (2)
PATCH v2 1/1 net: drop the packet when fails to do software segmentation or header check
Commit cecda693a969816bac5e470e1d9c9c0ef5567bca ("net: keep original skb which only needs header checking during software GSO") keeps the original skb for packets that only needs header check, but it doesn't drop the packet if software segmentation or header check were failed.
Fixes cecda693a9 ("net: keep original skb which only needs header checking during software GSO")
---
Stable candidate for 3.17 and above.
Changes from V1:
- Fix fixes tag
--- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/dev.c +1 -1
@@ -2673,7 +2673,7 @@ static struct sk_buff *validate_xmit_skb(struct sk_buff *skb, struct net_device segs =skb_gso_segment (skb, features);if (IS_ERR (segs)) { - segs =NULL ; + goto out_kfree_skb; }else if (segs) {consume_skb (skb); skb = segs;
Signature · 1 line
1.9.1
David Miller
maintainerFrom: Jason Wang <[email protected]>
Date: Fri, 19 Dec 2014 11:09:13 +0800
Quoted 10 lines
Commit
cecda693a969816bac5e470e1d9c9c0ef5567bca("net: keep original skb which only needs header checking during software GSO") keeps the original skb for packets that only needs header check, but it doesn't drop the packet if software segmentation or header check were failed.Fixes
cecda693a9("net: keep original skb which only needs header checking during software GSO")Cc Eric Dumazet <[email protected]>Signed-off-by Jason Wang <[email protected]>
Applied and queued up for -stable, thanks Jason.