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>] [day] [month] [year] [list]
Date:   Sat, 12 Feb 2022 15:53:39 +0100
From:   Niels Dossche <niels.dossche@...nt.be>
To:     Alexander Viro <viro@...iv.linux.org.uk>
Cc:     linux-kernel@...r.kernel.org, trivial@...nel.org,
        linux-fsdevel@...r.kernel.org
Subject: [PATCH] fs: update outdated documentation about i_mutex lock.

This field was renamed from i_mutex to i_rwsem and now resides in d_inode.

Signed-off-by: Niels Dossche <niels.dossche@...nt.be>
---
 fs/namei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/namei.c b/fs/namei.c
index 3f1829b3ab5b..abf454f12365 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2692,7 +2692,7 @@ static int lookup_one_common(struct user_namespace *mnt_userns,
  * Note that this routine is purely a helper for filesystem usage and should
  * not be called by generic code.
  *
- * The caller must hold base->i_mutex.
+ * The caller must hold base->d_inode->i_rwsem.
  */
 struct dentry *try_lookup_one_len(const char *name, struct dentry *base, int len)
 {
-- 
2.34.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ