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(-) -- 2.33.0