]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - fs/namei.c
fscrypt: remove reachable WARN in fscrypt_setup_iv_ino_lblk_32_key()
[mirror_ubuntu-hirsute-kernel.git] / fs / namei.c
index f1eb8ccd2be9582ded540baa243194cd8d243eec..d4a6dd77230383edefa16ce0b2566d64c08735ea 100644 (file)
@@ -1626,7 +1626,8 @@ static const char *pick_link(struct nameidata *nd, struct path *link,
                        return ERR_PTR(error);
        }
 
-       if (unlikely(nd->flags & LOOKUP_NO_SYMLINKS))
+       if (unlikely(nd->flags & LOOKUP_NO_SYMLINKS) ||
+                       unlikely(link->mnt->mnt_flags & MNT_NOSYMFOLLOW))
                return ERR_PTR(-ELOOP);
 
        if (!(nd->flags & LOOKUP_RCU)) {