diff options
| author | 2026-01-01 08:56:07 -0500 | |
|---|---|---|
| committer | 2026-01-05 16:23:42 -0800 | |
| commit | 9892353726ad222219aa18c329e3a3636134dd56 (patch) | |
| tree | 3ffd4a133b5bd3daed14d20cf4d7b324b4669d42 /rust/kernel/num/ssh:/git@git.zx2c4.com | |
| parent | Merge branch 'vsock-fix-so_zerocopy-on-accept-ed-vsocks' (diff) | |
net/sched: act_mirred: Fix leak when redirecting to self on egress
Whenever a mirred redirect to self on egress happens, mirred allocates a
new skb (skb_to_send). The loop to self check was done after that
allocation, but was not freeing the newly allocated skb, causing a leak.
Fix this by moving the if-statement to before the allocation of the new
skb.
The issue was found by running the accompanying tdc test in 2/2
with config kmemleak enabled.
After a few minutes the kmemleak thread ran and reported the leak coming from
mirred.
Fixes: 1d856251a009 ("net/sched: act_mirred: fix loop detection")
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Link: https://patch.msgid.link/20260101135608.253079-2-jhs@mojatatu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/kernel/num/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
