mirror of
https://github.com/torvalds/linux.git
synced 2025-11-02 01:29:02 +02:00
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:
|
||
|---|---|---|
| .. | ||
| route-test.c | ||
| utils.c | ||
| utils.h | ||