netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC net 0/1] net: sched: act: fix rcu race
@ 2017-10-10 12:32 Alexander Aring
  2017-10-10 12:32 ` [RFC net 1/1] net: sched: act: fix rcu race in dump Alexander Aring
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Aring @ 2017-10-10 12:32 UTC (permalink / raw)
  To: jhs; +Cc: xiyou.wangcong, jiri, netdev, kurup.manish, bjb, Alexander Aring

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(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-10-10 18:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-10 12:32 [RFC net 0/1] net: sched: act: fix rcu race Alexander Aring
2017-10-10 12:32 ` [RFC net 1/1] net: sched: act: fix rcu race in dump Alexander Aring
2017-10-10 12:39   ` Alexander Aring
2017-10-10 14:12   ` Eric Dumazet
2017-10-10 18:09     ` Alexander Aring
2017-10-10 16:40   ` Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).