cifsd: Fix regression in smb2_get_info
authorSebastian Gottschall <s.gottschall@dd-wrt.com>
Tue, 27 Apr 2021 06:33:54 +0000 (15:33 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 11 May 2021 00:15:46 +0000 (19:15 -0500)
commitced2b26a76cd1db0b6ccb39e0bc873177c9bda21
treeeb4851947dc9760949d66e72fb4b5e5d25616192
parent7adfd4f6f78eb1c2561bcfdc20f7cc39f2d89437
cifsd: Fix regression in smb2_get_info

a Windows 10 client isn't able to store files from ksmbd servers due
unknown local permission problems (code 0x8007003A) if smb3 encryption
is enabled. Windows 10 is requesting for ATTRIBUTE_SECINFO (mask 0x20)
which is not yet handled by ksmbd, this leads to a invalid response.
For now we just reintroduce the old check to avoid processing of unhandled
flags until ATTRIBUTE_SECINFO is properly handled.

Signed-off-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/smb2pdu.c