diff options
| author | Jamal Hadi Salim <jhs@mojatatu.com> | 2026-01-01 08:56:07 -0500 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-01-05 16:23:42 -0800 |
| commit | 9892353726ad222219aa18c329e3a3636134dd56 (patch) | |
| tree | 3ffd4a133b5bd3daed14d20cf4d7b324b4669d42 /tools/lib/python/git@git.tavy.me:linux.git | |
| parent | d96bfb686742a8b11cca3fca299ff9fe307ca5a9 (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 'tools/lib/python/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
