From: Eric Dumazet <hidden> Date: 2021-12-13 16:40:08
From: Eric Dumazet <redacted>
If compiled with CONFIG_NET_NS_REFCNT_TRACKER=y,
using put_net_track() in nfulnl_instance_free_rcu()
and get_net_track() in instance_create()
might help us finding netns refcount imbalances.
Signed-off-by: Eric Dumazet <redacted>
---
net/netfilter/nfnetlink_log.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
@@ -66,6 +66,7 @@ struct nfulnl_instance {structsk_buff*skb;/* pre-allocatd skb */structtimer_listtimer;structnet*net;+netns_trackerns_tracker;structuser_namespace*peer_user_ns;/* User namespace of the peer process */u32peer_portid;/* PORTID of the peer process */
From: Eric Dumazet <hidden> Date: 2021-12-13 16:40:10
From: Eric Dumazet <redacted>
If compiled with CONFIG_NET_NS_REFCNT_TRACKER=y,
using put_net_track() in iterate_cleanup_work()
and netns_tracker_alloc() in nf_nat_masq_schedule()
might help us finding netns refcount imbalances.
Signed-off-by: Eric Dumazet <redacted>
---
net/netfilter/nf_nat_masquerade.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
From: Pablo Neira Ayuso <pablo@netfilter.org> Date: 2021-12-15 23:03:30
On Mon, Dec 13, 2021 at 08:39:59AM -0800, Eric Dumazet wrote:
From: Eric Dumazet <redacted>
If compiled with CONFIG_NET_NS_REFCNT_TRACKER=y,
using put_net_track() in nfulnl_instance_free_rcu()
and get_net_track() in instance_create()
might help us finding netns refcount imbalances.
From: Pablo Neira Ayuso <pablo@netfilter.org> Date: 2021-12-15 23:04:39
On Thu, Dec 16, 2021 at 12:03:27AM +0100, Pablo Neira Ayuso wrote:
On Mon, Dec 13, 2021 at 08:39:59AM -0800, Eric Dumazet wrote:
quoted
From: Eric Dumazet <redacted>
If compiled with CONFIG_NET_NS_REFCNT_TRACKER=y,
using put_net_track() in nfulnl_instance_free_rcu()
and get_net_track() in instance_create()
might help us finding netns refcount imbalances.
Applied to nf-next, thanks
Hm, actually I cannot, nf-next is still behing net-next and it does
not have this symbols.
I'll send a pull request and pick up these patches asap.
Thanks.
From: Pablo Neira Ayuso <pablo@netfilter.org> Date: 2021-12-16 11:50:47
On Mon, Dec 13, 2021 at 08:39:59AM -0800, Eric Dumazet wrote:
From: Eric Dumazet <redacted>
If compiled with CONFIG_NET_NS_REFCNT_TRACKER=y,
using put_net_track() in nfulnl_instance_free_rcu()
and get_net_track() in instance_create()
might help us finding netns refcount imbalances.
From: Pablo Neira Ayuso <pablo@netfilter.org> Date: 2021-12-16 11:50:59
On Mon, Dec 13, 2021 at 08:40:00AM -0800, Eric Dumazet wrote:
From: Eric Dumazet <redacted>
If compiled with CONFIG_NET_NS_REFCNT_TRACKER=y,
using put_net_track() in iterate_cleanup_work()
and netns_tracker_alloc() in nf_nat_masq_schedule()
might help us finding netns refcount imbalances.