android_kernel_samsung_sm8650/fs/smb
Paulo Alcantara 74820f7406 smb: client: report correct st_size for SMB and NFS symlinks
commit 9d63509547a940225d06d7eba1dc412befae255d upstream.

We can't rely on FILE_STANDARD_INFORMATION::EndOfFile for reparse
points as they will be always zero.  Set it to symlink target's length
as specified by POSIX.

This will make stat() family of syscalls return the correct st_size
for such files.

Cc: stable@vger.kernel.org
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-12-08 08:51:13 +01:00
..
client smb: client: report correct st_size for SMB and NFS symlinks 2023-12-08 08:51:13 +01:00
common send channel sequence number in SMB3 requests after reconnects 2023-09-19 12:27:56 +02:00
server ksmbd: fix slab out of bounds write in smb_inherit_dacl() 2023-11-28 17:07:11 +00:00
Kconfig smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
Makefile smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00