aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorSteve French <[email protected]>2025-02-17 04:17:54 +0000
committerSteve French <[email protected]>2025-02-19 16:41:16 +0000
commit9df23801c83d3e12b4c09be39d37d2be385e52f9 (patch)
treeae9a86581bbfeb1f9cc077d39a3c5d9197fe2320 /arch/powerpc/lib/code-patching.c
parentsmb: client, common: Avoid multiple -Wflex-array-member-not-at-end warnings (diff)
downloadkernel-9df23801c83d3e12b4c09be39d37d2be385e52f9.tar.gz
kernel-9df23801c83d3e12b4c09be39d37d2be385e52f9.zip
smb311: failure to open files of length 1040 when mounting with SMB3.1.1 POSIX extensions
If a file size has bits 0x410 = ATTR_DIRECTORY | ATTR_REPARSE set then during queryinfo (stat) the file is regarded as a directory and subsequent opens can fail. A simple test example is trying to open any file 1040 bytes long when mounting with "posix" (SMB3.1.1 POSIX/Linux Extensions). The cause of this bug is that Attributes field in smb2_file_all_info struct occupies the same place that EndOfFile field in smb311_posix_qinfo, and sometimes the latter struct is incorrectly processed as if it was the first one. Reported-by: Oleh Nykyforchyn <[email protected]> Tested-by: Oleh Nykyforchyn <[email protected]> Acked-by: Paulo Alcantara (Red Hat) <[email protected]> Cc: [email protected] Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions