diff options
| author | Eric Dumazet <[email protected]> | 2010-06-09 16:21:07 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2010-06-11 05:47:08 +0000 |
| commit | 592fcb9dfafaa02dd0edc207bf5d3a0ee7a1f8df (patch) | |
| tree | 3b7bbd5313c7f564cf8087658c36d32a87ca79c4 /net/ipv4/tcp_ipv4.c | |
| parent | ipv6: mcast: RCU conversions (diff) | |
| download | kernel-592fcb9dfafaa02dd0edc207bf5d3a0ee7a1f8df.tar.gz kernel-592fcb9dfafaa02dd0edc207bf5d3a0ee7a1f8df.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions
