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)
commit2c1e2703ff812ccaa42a4bc8a25803955e342b85
tree084902b5a0c95a45bb27d99dcffeaf0a902bfeac
parentfe72926b792e52ab00abfa81a201805bfb2247d6
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