Thread (83 messages) flat view 83 messages, 9 authors, 2017-11-14
STALE3197d

[PATCH v3 11/21] clusterip: exit_net cleanup check added

From: Vasily Averin <hidden>
Date: 2017-11-06 13:24:42
Also in: netfilter-devel
Subsystem: networking [general], the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

Be sure that configs list initialized in net_init hook was return
to initial state.

Signed-off-by: Vasily Averin <redacted>
---
 net/ipv4/netfilter/ipt_CLUSTERIP.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c b/net/ipv4/netfilter/ipt_CLUSTERIP.c
index 17b4ca5..4364a88 100644
--- a/net/ipv4/netfilter/ipt_CLUSTERIP.c
+++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c
@@ -819,6 +819,9 @@ static void clusterip_net_exit(struct net *net)
 	cn->procdir = NULL;
 #endif
 	nf_unregister_net_hook(net, &cip_arp_ops);
+	WARN_ONCE(!list_empty(&cn->configs),
+		  "net %x %s: configs list is not empty\n",
+		  net->ns.inum, __func__);
 }
 
 static struct pernet_operations clusterip_net_ops = {
-- 
2.7.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help