]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: call nf_hook_ingress with rcu_read_lock
authorAaron Conole <aconole@bytheb.org>
Wed, 21 Sep 2016 15:35:03 +0000 (11:35 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 24 Sep 2016 19:25:49 +0000 (21:25 +0200)
commit341da849afebbd0f2c1c0d38a9900bdac046d62a
tree084902b5a0c95a45bb27d99dcffeaf0a902bfeac
parent239f004de40d5a14ee85bf4de7cf7edc0118932a
netfilter: call nf_hook_ingress with rcu_read_lock

This commit ensures that the rcu read-side lock is held while the
ingress hook is called.  This ensures that a call to nf_hook_slow (and
ultimately nf_ingress) will be read protected.

Signed-off-by: Aaron Conole <aconole@bytheb.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/core/dev.c