diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-07-13 17:33:19 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-07-13 17:33:28 -0700 |
commit | eb1b24a9bb6982bb44b135e3490d3159ba0be4f2 (patch) | |
tree | 1ef056beee29642a6c12db299c680ce104c2e9d7 /net/core/skbuff.c | |
parent | ba2274dcfda859b8a27193e68ad37bfe4da28ddc (diff) | |
parent | b1983d427a53911ea71ba621d4bf994ae22b1536 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Cross-merge networking fixes after downstream PR.
No conflicts or adjacent changes.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r-- | net/core/skbuff.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 6c5915efbc17..a298992060e6 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -4261,6 +4261,11 @@ struct sk_buff *skb_segment_list(struct sk_buff *skb, skb_push(skb, -skb_network_offset(skb) + offset); + /* Ensure the head is writeable before touching the shared info */ + err = skb_unclone(skb, GFP_ATOMIC); + if (err) + goto err_linearize; + skb_shinfo(skb)->frag_list = NULL; while (list_skb) { |