Skip to content

RFC net: sched: act: fix rcu race

Alexander Aring netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest1 patch 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1net: sched: act: fix rcu race in dumpnet/sched/act_skbmod.c+6 -14 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC net 0/1] net: sched: act: fix rcu race

Hi,

while I reading tc action code to debug a "it does not work" statement I suppose I detected issues with the current rcu handling of tc actions.

There are more than just skbmod which do it wrong. Anyway if somebody agree with me here I will send more patches which fix this behaviour in other tc actions where code was just copy&pasted.

The problem because nobody hits this issue is, I think that dump will do alot of previous stuff which took more time than a rcu_synchronize. Anyway, this change should avoid any use after free issues etc.

- Alex

Alexander Aring (1):
net: sched: act: fix rcu race in dump

 net/sched/act_skbmod.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Signature · 1 line
2.11.0