[NETFILTER]: ip_conntrack: fix NAT helper unload races
authorPatrick McHardy <kaber@trash.net>
Wed, 29 Nov 2006 01:35:25 +0000 (02:35 +0100)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:31:22 +0000 (21:31 -0800)
The NAT helpr hooks are protected by RCU, but all of the
conntrack helpers test and use the global pointers instead
of copying them first using rcu_dereference()

Also replace synchronize_net() by synchronize_rcu() for clarity
since sychronizing only with packet receive processing is
insufficient to prevent races.

Signed-off-by: Patrick McHardy <kaber@trash.net>

No differences found