This is a note to let you know that I've just added the patch titled smb: client: fix missing mode bits for SMB symlinks to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: smb-client-fix-missing-mode-bits-for-smb-symlinks.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. commit 9ab12c755c1e01616c2dcfea64cf55fb2c382d0b Author: Paulo Alcantara <pc@xxxxxxxxxxxxx> Date: Sat Nov 25 23:55:10 2023 -0300 smb: client: fix missing mode bits for SMB symlinks [ Upstream commit ef22bb800d967616c7638d204bc1b425beac7f5f ] When instantiating inodes for SMB symlinks, add the mode bits from @cifs_sb->ctx->file_mode as we already do for the other special files. Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Paulo Alcantara (SUSE) <pc@xxxxxxxxxxxxx> Signed-off-by: Steve French <stfrench@xxxxxxxxxxxxx> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> diff --git a/fs/smb/client/inode.c b/fs/smb/client/inode.c index 7be51f9d2fa18..5343898bac8a6 100644 --- a/fs/smb/client/inode.c +++ b/fs/smb/client/inode.c @@ -264,7 +264,7 @@ cifs_unix_basic_to_fattr(struct cifs_fattr *fattr, FILE_UNIX_BASIC_INFO *info, fattr->cf_dtype = DT_REG; break; case UNIX_SYMLINK: - fattr->cf_mode |= S_IFLNK; + fattr->cf_mode |= S_IFLNK | cifs_sb->ctx->file_mode; fattr->cf_dtype = DT_LNK; break; case UNIX_DIR: