lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <33f758b03548b869f75d72a24c3abbcf382427ae.camel@kernel.org>
Date: Mon, 24 Mar 2025 20:37:57 -0400
From: Jeff Layton <jlayton@...nel.org>
To: Andrew Lunn <andrew@...n.ch>
Cc: "David S. Miller" <davem@...emloft.net>, Eric Dumazet
 <edumazet@...gle.com>,  Jakub Kicinski	 <kuba@...nel.org>, Paolo Abeni
 <pabeni@...hat.com>, Simon Horman	 <horms@...nel.org>,
 netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: add a debugfs files for showing netns refcount
 tracking info

On Mon, 2025-03-24 at 21:50 +0100, Andrew Lunn wrote:
> On Mon, Mar 24, 2025 at 04:24:47PM -0400, Jeff Layton wrote:
> > CONFIG_NET_NS_REFCNT_TRACKER currently has no convenient way to display
> > its tracking info. Add a new net_ns directory in debugfs. Have a
> > directory in there for every net, with refcnt and notrefcnt files that
> > show the currently tracked active and passive references.
> 
> Hi Jeff
> 
> CONFIG_NET_NS_REFCNT_TRACKER is just an instance of
> CONFIG_REF_TRACKER.
> 
> It would be good to explain why you are doing it at the netdev level,
> rather than part of the generic CONFIG_REF_TRACKER level. Why would
> other subsystems not benefit from having their reference trackers in
> debugfs?
> 
> 

Mostly because I just needed the NS_REFCNT_TRACKER at the time.

I'm OK with making this more general, but all of those subsystems using
refcount trackers would need to add the infrastructure to create
directories to track them.

To whit:

What would the directory structure look like for the more general case?
-- 
Jeff Layton <jlayton@...nel.org>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ