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: <tiwlktsfpicrf3wg5yqvnxnrma3wgipqgkbfkrmj6w755fwpxy@bvxuofhdsemw>
Date: Mon, 5 Jan 2026 18:18:34 +0100
From: Jan Kara <jack@...e.cz>
To: Mateusz Guzik <mjguzik@...il.com>
Cc: brauner@...nel.org, viro@...iv.linux.org.uk, jack@...e.cz, 
	linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH] fs: only assert on LOOKUP_RCU when built with
 CONFIG_DEBUG_VFS

On Mon 29-12-25 13:57:51, Mateusz Guzik wrote:
> Calls to the 2 modified routines are explicitly gated with checks for
> the flag, so there is no use for this in production kernels.
> 
> Signed-off-by: Mateusz Guzik <mjguzik@...il.com>

Looks good. Feel free to add:

Reviewed-by: Jan Kara <jack@...e.cz>

								Honza

> ---
>  fs/namei.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/namei.c b/fs/namei.c
> index f7a8b5b000c2..9c5a372a86f6 100644
> --- a/fs/namei.c
> +++ b/fs/namei.c
> @@ -879,7 +879,7 @@ static bool try_to_unlazy(struct nameidata *nd)
>  {
>  	struct dentry *parent = nd->path.dentry;
>  
> -	BUG_ON(!(nd->flags & LOOKUP_RCU));
> +	VFS_BUG_ON(!(nd->flags & LOOKUP_RCU));
>  
>  	if (unlikely(nd->flags & LOOKUP_CACHED)) {
>  		drop_links(nd);
> @@ -919,7 +919,8 @@ static bool try_to_unlazy(struct nameidata *nd)
>  static bool try_to_unlazy_next(struct nameidata *nd, struct dentry *dentry)
>  {
>  	int res;
> -	BUG_ON(!(nd->flags & LOOKUP_RCU));
> +
> +	VFS_BUG_ON(!(nd->flags & LOOKUP_RCU));
>  
>  	if (unlikely(nd->flags & LOOKUP_CACHED)) {
>  		drop_links(nd);
> -- 
> 2.48.1
> 
-- 
Jan Kara <jack@...e.com>
SUSE Labs, CR

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ