1
0
Files
linux/include/net
Eric Dumazet 55432d2b54 inetpeer: fix a race in inetpeer_gc_worker()
commit 5faa5df1fa (inetpeer: Invalidate the inetpeer tree along with
the routing cache) added a race :

Before freeing an inetpeer, we must respect a RCU grace period, and make
sure no user will attempt to increase refcnt.

inetpeer_invalidate_tree() waits for a RCU grace period before inserting
inetpeer tree into gc_list and waking the worker. At that time, no
concurrent lookup can find a inetpeer in this tree.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-06-06 10:45:15 -07:00
..
2012-05-19 01:08:16 -04:00
2012-04-15 12:44:40 -04:00
2012-04-15 12:44:40 -04:00
2012-04-15 12:44:40 -04:00
2012-05-27 01:11:22 -04:00
2012-04-15 12:44:40 -04:00
2012-04-17 22:31:59 -04:00
2012-04-15 12:44:40 -04:00
2012-05-08 19:40:33 +02:00
2012-04-14 14:47:05 -04:00
2012-05-19 01:08:16 -04:00
2012-05-17 18:45:20 -04:00
2012-05-16 15:16:44 -04:00
2011-12-11 18:25:16 -05:00
2012-05-19 01:08:16 -04:00
2012-04-15 12:44:40 -04:00
2012-05-17 14:59:59 -04:00
2012-04-15 12:44:40 -04:00
2012-05-16 15:17:08 -04:00
2012-04-15 12:44:40 -04:00