diff options
author | Florian Westphal | 2017-07-10 15:06:39 +0200 |
---|---|---|
committer | Pablo Neira Ayuso | 2017-07-24 12:20:10 +0200 |
commit | 56a97e701c49ff66dd1a5e5e02775209ab5147d3 (patch) | |
tree | 248560469ad38cb17a67be395dad3c590624e724 /net/netfilter/nf_tables_api.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | kernel-qcow2-linux-56a97e701c49ff66dd1a5e5e02775209ab5147d3.tar.gz kernel-qcow2-linux-56a97e701c49ff66dd1a5e5e02775209ab5147d3.tar.xz kernel-qcow2-linux-56a97e701c49ff66dd1a5e5e02775209ab5147d3.zip |
netfilter: expect: add to hash table after expect init
assuming we have lockless readers we should make sure they can only
see expectations that have already been initialized.
hlist_add_head_rcu acts as memory barrier, move it after timer setup.
Theoretically we could crash due to a del_timer() on other cpu
seeing garbage data.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_tables_api.c')
0 files changed, 0 insertions, 0 deletions