Skip to content

net: Fix BUG_ON for segment frag_list with mangled gso_size and head_frag is true

Fred Li bpf lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 3 repliesIn review

Changes in v2 from the cover letter

Updated with remove the sg condition may be more make sense.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: Fix skb_segment when splitting gso_size mangled skb having linear-headed frag_list whose head_frag=truenet/core/skbuff.c+1 -118 replies
2/2test_bpf: Introduce an skb_segment test for frag_list whose head_frag=true and gso_size was mangledlib/test_bpf.c+64 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchWillem de Bruijn
1/2R-b R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] net: Fix BUG_ON for segment frag_list with mangled gso_size and head_frag is true

This serices fix the BUG_ON when segment frag_list with mangled gso_size and head_frag is true. This patch was tested on kernel 6.6.35.

v2 changes:
Updated with remove the sg condition may be more make sense.

Fred Li (2):
net: Fix skb_segment when splitting gso_size mangled skb having
linear-headed frag_list whose head_frag=true
test_bpf: Introduce an skb_segment test for frag_list whose
head_frag=true and gso_size was mangled

 lib/test_bpf.c    | 64 +++++++++++++++++++++++++++++++++++++++++++++++
 net/core/skbuff.c |  2 +-
 2 files changed, 65 insertions(+), 1 deletion(-)
Signature · 1 line
2.33.0