diff options
author | Liping Zhang <liping.zhang@spreadtrum.com> | 2016-07-12 19:45:00 +0800 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-07-12 16:24:22 +0200 |
commit | 3101e0fc1f6e809d38fbb5845c6c5eb0eefeda07 (patch) | |
tree | 79b1f0820d001fa4c34efec874fc527377808a6d /net/ipv4 | |
parent | c2b9b4fee8ab86f2bb657e5ac48d803879e92765 (diff) | |
download | linux-3101e0fc1f6e809d38fbb5845c6c5eb0eefeda07.tar.bz2 |
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/ipv4')
0 files changed, 0 insertions, 0 deletions