commit | 56a97e701c49ff66dd1a5e5e02775209ab5147d3 | [log] [tgz] |
---|---|---|
author | Florian Westphal <fw@strlen.de> | Mon Jul 10 15:06:39 2017 +0200 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Mon Jul 24 12:20:10 2017 +0200 |
tree | 248560469ad38cb17a67be395dad3c590624e724 | |
parent | 7a68ada6ec7d88c68057d3a4c2a517eb94289976 [diff] |
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>