ksmbd: return STATUS_NOT_SUPPORTED on unsupported smb2.0 dialect
authorNamjae Jeon <linkinjeon@kernel.org>
Tue, 21 Mar 2023 06:36:40 +0000 (15:36 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:47:58 +0000 (12:47 +0200)
commit496e186bc005fa4a4d9cf14e0662ae00b60e1362
tree378696e7aeb9b73c694c98eae08f73bf54b9067e
parent604a4a6f841451b439d1a94331e9e133a9abf928
ksmbd: return STATUS_NOT_SUPPORTED on unsupported smb2.0 dialect

commit b53e8cfec30b93c120623232ba27c041b1ef8f1a upstream.

ksmbd returned "Input/output error" when mounting with vers=2.0 to
ksmbd. It should return STATUS_NOT_SUPPORTED on unsupported smb2.0
dialect.

Cc: stable@vger.kernel.org
Reported-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/smb_common.c