]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: mctp: copy skb ext data when fragmenting
authorJeremy Kerr <jk@codeconstruct.com.au>
Mon, 19 Feb 2024 09:51:54 +0000 (17:51 +0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:34 +0000 (18:19 -0400)
commitbe50365391a760853e1eb08ecaa4c3aad099788f
treec4797151867f2f8a494b11e4c926b9e712ba65da
parent8f39d2e9d806252ce2424246765dbd3e529d1323
net: mctp: copy skb ext data when fragmenting

[ Upstream commit 1394c1dec1c619a46867ed32791a29695372bff8 ]

If we're fragmenting on local output, the original packet may contain
ext data for the MCTP flows. We'll want this in the resulting fragment
skbs too.

So, do a skb_ext_copy() in the fragmentation path, and implement the
MCTP-specific parts of an ext copy operation.

Fixes: 67737c457281 ("mctp: Pass flow data & flow release events to drivers")
Reported-by: Jian Zhang <zhangjian.3032@bytedance.com>
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/skbuff.c
net/mctp/route.c