commit | 90d2723c6d4cb2ace50fc3b932a2bcc77710450b | [log] [tgz] |
---|---|---|
author | Pablo Neira Ayuso <pablo@netfilter.org> | Tue Mar 20 17:00:19 2018 +0100 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Thu Mar 22 13:17:52 2018 +0100 |
tree | 74c7035de716e4fdfdf3e9ec44341726713dbeb0 | |
parent | d92191aa84e5f187d543867c3d54b38f294833fa [diff] |
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>