summaryrefslogtreecommitdiff
path: root/net/netfilter/x_tables.c
diff options
context:
space:
mode:
authorLiping Zhang <liping.zhang@spreadtrum.com>2016-07-12 11:45:00 (GMT)
committerPablo Neira Ayuso <pablo@netfilter.org>2016-07-12 14:24:22 (GMT)
commit3101e0fc1f6e809d38fbb5845c6c5eb0eefeda07 (patch)
tree79b1f0820d001fa4c34efec874fc527377808a6d /net/netfilter/x_tables.c
parentc2b9b4fee8ab86f2bb657e5ac48d803879e92765 (diff)
downloadlinux-3101e0fc1f6e809d38fbb5845c6c5eb0eefeda07.tar.xz
netfilter: conntrack: protect early_drop by rcu read lock
User can add ct entry via nfnetlink(IPCTNL_MSG_CT_NEW), and if the total number reach the nf_conntrack_max, we will try to drop some ct entries. But in this case(the main function call path is ctnetlink_create_conntrack -> nf_conntrack_alloc -> early_drop), rcu_read_lock is not held, so race with hash resize will happen. Fixes: 242922a02717 ("netfilter: conntrack: simplify early_drop") Cc: Florian Westphal <fw@strlen.de> Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/x_tables.c')
0 files changed, 0 insertions, 0 deletions