Eric Dumazet 592fcb9dfa ip: ip_ra_control() rcu fix
commit 66018506e15b (ip: Router Alert RCU conversion) introduced RCU
lookups to ip_call_ra_chain(). It missed proper deinit phase :
When ip_ra_control() deletes an ip_ra_chain, it should make sure
ip_call_ra_chain() users can not start to use socket during the rcu
grace period. It should also delay the sock_put() after the grace
period, or we risk a premature socket freeing and corruptions, as
raw sockets are not rcu protected yet.

This delay avoids using expensive atomic_inc_not_zero() in
ip_call_ra_chain().

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-06-10 22:47:08 -07:00
..
2010-04-20 16:37:13 -07:00
2010-06-03 03:21:52 -07:00
2010-05-31 00:24:11 -07:00
2010-06-07 22:49:25 -07:00
2010-06-10 22:47:08 -07:00
2010-06-09 18:06:14 -07:00
2010-06-03 03:21:52 -07:00
2010-05-17 23:23:13 -07:00
2010-04-23 16:37:33 -07:00
2010-04-20 16:37:13 -07:00
2010-05-29 00:18:48 -07:00
2010-04-20 16:37:13 -07:00
2010-06-03 03:21:52 -07:00
2009-07-12 12:22:34 -07:00
2010-05-21 14:40:01 -04:00
2010-05-17 17:39:28 -07:00