Skip to content
Snippets Groups Projects
Commit 337fbc41 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[NETFILTER]: ip_conntrack: fix NAT helper unload races


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: default avatarPatrick McHardy <kaber@trash.net>
parent 468ec44b
No related branches found
No related tags found
No related merge requests found
Showing
with 216 additions and 169 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment