netfilter: nf_tables: add and use helper for module autoload
authorFlorian Westphal <fw@strlen.de>
Wed, 11 Jul 2018 11:45:10 +0000 (13:45 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 18 Jul 2018 09:26:44 +0000 (11:26 +0200)
commit452238e8d5ffd8b77f92387519513839d4ca7379
tree58e03df037489837b45981bc7689e090c13bfa73
parent440534d3c56be04abfb26850ee882d19d223557a
netfilter: nf_tables: add and use helper for module autoload

module autoload is problematic, it requires dropping the mutex that
protects the transaction.  Once the mutex has been dropped, another
client can start a new transaction before we had a chance to abort
current transaction log.

This helper makes sure we first zap the transaction log, then
drop mutex for module autoload.

In case autload is successful, the caller has to reply entire
message anyway.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c