From: Eric Dumazet Date: Wed, 25 Mar 2009 16:24:34 +0000 (+0100) Subject: netfilter: nf_conntrack: use hlist_add_head_rcu() in nf_conntrack_set_hashsize() X-Git-Tag: v2.6.30-rc1~642^2~51^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78f3648601fdc7a8166748bbd6d0555a88efa24a;p=pandora-kernel.git 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 Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed