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: <20250915-gepachtet-paprika-a7b4274372c1@brauner>
Date: Mon, 15 Sep 2025 15:45:02 +0200
From: Christian Brauner <brauner@...nel.org>
To: Jan Kara <jack@...e.cz>
Cc: Amir Goldstein <amir73il@...il.com>, linux-fsdevel@...r.kernel.org, 
	Josef Bacik <josef@...icpanda.com>, Jeff Layton <jlayton@...nel.org>, Mike Yuan <me@...dnzj.com>, 
	Zbigniew Jędrzejewski-Szmek <zbyszek@...waw.pl>, Lennart Poettering <mzxreary@...inter.de>, 
	Daan De Meyer <daan.j.demeyer@...il.com>, Aleksa Sarai <cyphar@...har.com>, 
	Alexander Viro <viro@...iv.linux.org.uk>, Jens Axboe <axboe@...nel.dk>, Tejun Heo <tj@...nel.org>, 
	Johannes Weiner <hannes@...xchg.org>, Michal Koutný <mkoutny@...e.com>, 
	Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, 
	Paolo Abeni <pabeni@...hat.com>, Simon Horman <horms@...nel.org>, 
	Chuck Lever <chuck.lever@...cle.com>, linux-nfs@...r.kernel.org, linux-kselftest@...r.kernel.org, 
	linux-block@...r.kernel.org, linux-kernel@...r.kernel.org, cgroups@...r.kernel.org, 
	netdev@...r.kernel.org
Subject: Re: [PATCH v2 18/33] mnt: support ns lookup

On Mon, Sep 15, 2025 at 01:48:51PM +0200, Jan Kara wrote:
> On Fri 12-09-25 13:52:41, Christian Brauner wrote:
> > Move the mount namespace to the generic ns lookup infrastructure.
> > This allows us to drop a bunch of members from struct mnt_namespace.
> >                                                                       t
> > Signed-off-by: Christian Brauner <brauner@...nel.org>
> 
> Just one nit below. Feel free to add:
> 
> Reviewed-by: Jan Kara <jack@...e.cz>
> 
> > @@ -4185,11 +4107,11 @@ static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *user_ns, bool a
> >  		return ERR_PTR(ret);
> >  	}
> >  	if (!anon)
> > -		new_ns->seq = atomic64_inc_return(&mnt_ns_seq);
> > +		ns_tree_gen_id(&new_ns->ns);
> > +	RB_CLEAR_NODE(&new_ns->ns.ns_tree_node);
> > +	INIT_LIST_HEAD(&new_ns->ns.ns_list_node);
> 
> Why do you initialize ns_tree_node and ns_list_node here when
> ns_init_common() already initialized them?

I forgot to remove that. I should note I did all this while severly sick. :D

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ