]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: fix register ordering
authorFlorian Westphal <fw@strlen.de>
Thu, 2 Aug 2018 19:44:40 +0000 (21:44 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 16 Aug 2018 17:37:02 +0000 (19:37 +0200)
commit21ab8eea972477aea4f7503a240bd67f87816caf
treeb2ded0dc8be12f0048188bbf2b0a80f01fbb353a
parent48362725a1f249f02af320f72d4ce72c6a1503ca
netfilter: nf_tables: fix register ordering

We must register nfnetlink ops last, as that exposes nf_tables to
userspace.  Without this, we could theoretically get nfnetlink request
before net->nft state has been initialized.

Fixes: 3829242a042c7 ("netfilter: nf_tables: complete net namespace support")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nft_chain_filter.c