Namjae Jeon 9ca8581e79 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>
2022-01-23 18:19:04 -06:00
..
2022-01-10 12:44:19 -06:00
2022-01-10 12:44:19 -06:00
2021-11-11 19:22:58 -06:00
2021-07-02 16:27:10 +09:00
2021-11-11 19:22:58 -06:00
2021-12-03 18:58:11 +01:00
2021-12-03 18:58:11 +01:00