aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_physdev.c
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2009-03-25 17:24:34 +0100
committerPatrick McHardy <kaber@trash.net>2009-03-25 17:24:34 +0100
commit78f3648601fdc7a8166748bbd6d0555a88efa24a (patch)
tree6884aa56afe297f794b4bd926890a59eae6c259e /net/netfilter/xt_physdev.c
parentnetfilter: fix xt_LED build failure (diff)
downloadlinux-78f3648601fdc7a8166748bbd6d0555a88efa24a.tar.gz
linux-78f3648601fdc7a8166748bbd6d0555a88efa24a.zip
netfilter: nf_conntrack: use hlist_add_head_rcu() in nf_conntrack_set_hashsize()
Using hlist_add_head() in nf_conntrack_set_hashsize() is quite dangerous. Without any barrier, one CPU could see a loop while doing its lookup. Its true new table cannot be seen by another cpu, but previous table is still readable. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/netfilter/xt_physdev.c')
0 files changed, 0 insertions, 0 deletions