netfilter: nf_tables: cache device name in flowtable object
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 21 Mar 2018 12:55:42 +0000 (13:55 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 22 Mar 2018 11:57:07 +0000 (12:57 +0100)
Devices going away have to grab the nfnl_lock from the netdev event path
to avoid races with control plane updates.

However, netlink dumps in netfilter do not hold nfnl_lock mutex. Cache
the device name into the objects to avoid an use-after-free situation
for a device that is going away.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

No differences found