]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: iptable_raw: drop bogus net_init annotation
authorFlorian Westphal <fw@strlen.de>
Fri, 17 Sep 2021 09:56:25 +0000 (11:56 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 21 Sep 2021 01:46:56 +0000 (03:46 +0200)
commitcc8072153aafd65bff1b3679a112cb6ba71ab375
tree031de329687549e30fa6adc9194757254669cde4
parent7970a19b71044bf4dc2c1becc200275bdf1884d4
netfilter: iptable_raw: drop bogus net_init annotation

This is a leftover from the times when this function was wired up via
pernet_operations.  Now its called when userspace asks for the table.

With CONFIG_NET_NS=n, iptable_raw_table_init memory has been discarded
already and we get a kernel crash.

Other tables are fine, __net_init annotation was removed already.

Fixes: fdacd57c79b7 ("netfilter: x_tables: never register tables by default")
Reported-by: youling 257 <youling257@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/iptable_raw.c