diff options
author | Matt Johnston <matt@codeconstruct.com.au> | 2025-03-06 05:32:45 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-03-11 15:12:19 +0300 |
commit | f5d83cf0eeb90fade4d5c4d17d24b8bee9ceeecc (patch) | |
tree | 3179df8aa9ef9dd3f494fed51c55d46ac13f4ba4 /tools/perf/scripts/python/sched-migration.py | |
parent | 62531a1effa87bdab12d5104015af72e60d926ff (diff) | |
download | linux-f5d83cf0eeb90fade4d5c4d17d24b8bee9ceeecc.tar.xz |
net: mctp: unshare packets when reassembling
Ensure that the frag_list used for reassembly isn't shared with other
packets. This avoids incorrect reassembly when packets are cloned, and
prevents a memory leak due to circular references between fragments and
their skb_shared_info.
The upcoming MCTP-over-USB driver uses skb_clone which can trigger the
problem - other MCTP drivers don't share SKBs.
A kunit test is added to reproduce the issue.
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Fixes: 4a992bbd3650 ("mctp: Implement message fragmentation & reassembly")
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250306-matt-mctp-usb-v1-1-085502b3dd28@codeconstruct.com.au
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions