aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2024-02-15 06:33:46 -0800
committerDavid S. Miller <[email protected]>2024-02-16 10:13:31 +0000
commit166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210 (patch)
tree6ac5e5691f0c839dac289bc9951fff7b0751427b /scripts/generate_rust_analyzer.py
parent52f671db18823089a02f07efc04efdb2272ddc17 (diff)
net/sched: act_mirred: don't override retval if we already lost the skb
If we're redirecting the skb, and haven't called tcf_mirred_forward(), yet, we need to tell the core to drop the skb by setting the retcode to SHOT. If we have called tcf_mirred_forward(), however, the skb is out of our hands and returning SHOT will lead to UaF. Move the retval override to the error path which actually need it. Reviewed-by: Michal Swiatkowski <[email protected]> Fixes: e5cf1baf92cb ("act_mirred: use TC_ACT_REINSERT when possible") Signed-off-by: Jakub Kicinski <[email protected]> Acked-by: Jamal Hadi Salim <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions