Thread (19 messages) flat view 19 messages, 4 authors, 2021-09-16

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

From: youling 257 <hidden>
Date: 2021-09-16 15:59:26
Also in: netfilter-devel

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;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help