]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: call nf_hook_state_init with rcu_read_lock held
authorFlorian Westphal <fw@strlen.de>
Wed, 21 Sep 2016 15:35:02 +0000 (11:35 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 24 Sep 2016 19:25:49 +0000 (21:25 +0200)
commit29a1aa7739894ec20b40d9f20eac829b20bf7ac4
tree52b2a3533cd57daafceb5c3fbb13e5a1ed04bbf8
parentdbddbf4a9aa373c9136f2cdbfe7d4c319876be01
netfilter: call nf_hook_state_init with rcu_read_lock held

This makes things simpler because we can store the head of the list
in the nf_state structure without worrying about concurrent add/delete
of hook elements from the list.

A future commit will make use of this to implement a simpler
linked-list.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Aaron Conole <aconole@bytheb.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter.h
include/linux/netfilter_ingress.h