test this patch can fix kernel panic.
2021-09-16 20:24 GMT+08:00, Florian Westphal [off-list ref]:
quoted hunk ↗ jump to hunk
youling 257 [off-list ref] wrote:
quoted
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;