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-06-03 20:01:52 -07:00
2009-10-18 18:52:53 -07:00
2010-02-22 16:20:22 -08:00
2009-11-13 20:46:58 -08:00
2010-06-10 22:47:08 -07:00
2010-02-22 16:20:22 -08:00
2010-05-17 22:36:55 -07:00
2008-10-07 08:38:24 +11:00
2010-05-17 17:18:50 -07:00
2009-09-14 17:03:01 -07:00
2010-06-07 01:08:10 -07:00
2009-03-02 03:00:15 -08:00
2009-03-02 03:00:15 -08:00
2010-05-17 22:35:36 -07:00
2009-05-25 22:44:59 -07:00
2010-01-17 19:16:02 -08:00