summaryrefslogtreecommitdiffstats
path: root/net/ipv4/netfilter/nf_socket_ipv4.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso2018-03-20 17:00:19 +0100
committerPablo Neira Ayuso2018-03-22 13:17:52 +0100
commit90d2723c6d4cb2ace50fc3b932a2bcc77710450b (patch)
tree74c7035de716e4fdfdf3e9ec44341726713dbeb0 /net/ipv4/netfilter/nf_socket_ipv4.c
parentnetfilter: nf_tables: cache device name in flowtable object (diff)
downloadkernel-qcow2-linux-90d2723c6d4cb2ace50fc3b932a2bcc77710450b.tar.gz
kernel-qcow2-linux-90d2723c6d4cb2ace50fc3b932a2bcc77710450b.tar.xz
kernel-qcow2-linux-90d2723c6d4cb2ace50fc3b932a2bcc77710450b.zip
netfilter: nf_tables: do not hold reference on netdevice from preparation phase
The netfilter netdevice event handler hold the nfnl_lock mutex, this avoids races with a device going away while such device is being attached to hooks from the netlink control plane. Therefore, either control plane bails out with ENOENT or netdevice event path waits until the hook that is attached to net_device is registered. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4/netfilter/nf_socket_ipv4.c')
0 files changed, 0 insertions, 0 deletions