Subject: Re: [PATCH net-next 09/10] netfilter: x_tables: never register tables by default

From: Florian Westphal <[email-masked]>
Date: Thu, 16 Sep 2021 14:24:43 +0200

youling 257 <[email-masked]> wrote:
> kernel 5.15rc1.

Thanks, this is due to a leftover __init annotation.
This patch should fix the bug:

diff --git a/net/ipv4/netfilter/iptable_raw.c b/net/ipv4/netfilter/iptable_raw.c
--- a/net/ipv4/netfilter/iptable_raw.c
+++ b/net/ipv4/netfilter/iptable_raw.c
@@ -42,7 +42,7 @@ iptable_raw_hook(void *priv, struct sk_buff *skb,
 
 static struct nf_hook_ops *rawtable_ops __read_mostly;
 
-static int __net_init iptable_raw_table_init(struct net *net)
+static int iptable_raw_table_init(struct net *net)
 {
 	struct ipt_replace *repl;
 	const struct xt_table *table = &packet_raw;