diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2022-01-22 02:47:22 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-01-24 01:19:04 +0100 |
commit | 9ca8581e79e51c57e60b3b8e3b89d816448f49fe (patch) | |
tree | beaa16deed33c4e48e66c7c0c0d93347bd865dc6 /fs/affs/symlink.c | |
parent | Linux 5.17-rc1 (diff) | |
download | linux-9ca8581e79e51c57e60b3b8e3b89d816448f49fe.tar.xz linux-9ca8581e79e51c57e60b3b8e3b89d816448f49fe.zip |
ksmbd: fix SMB 3.11 posix extension mount failure
cifs client set 4 to DataLength of create_posix context, which mean
Mode variable of create_posix context is only available. So buffer
validation of ksmbd should check only the size of Mode except for
the size of Reserved variable.
Fixes: 8f77150c15f8 ("ksmbd: add buffer validation for SMB2_CREATE_CONTEXT")
Cc: stable@vger.kernel.org # v5.15+
Reported-by: Steve French <smfrench@gmail.com>
Tested-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/affs/symlink.c')
0 files changed, 0 insertions, 0 deletions