OSDN Git Service

ksmbd: fix multi session connection failure
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 15 Dec 2021 05:57:27 +0000 (14:57 +0900)
committerSteve French <stfrench@microsoft.com>
Wed, 29 Dec 2021 04:47:22 +0000 (22:47 -0600)
commitce53d365378cde71bb6596d79c257e600d951d29
tree95c2922a9671661b1062260b13fda4db4a4436f1
parent71cd9cb680cb5d536c0dcbddb1c1d0010d79b214
ksmbd: fix multi session connection failure

When RSS mode is enable, windows client do simultaneously send several
session requests to server. There is racy issue using
sess->ntlmssp.cryptkey on N connection : 1 session. So authetication
failed using wrong cryptkey on some session. This patch move cryptkey
to ksmbd_conn structure to use each cryptkey on connection.

Tested-by: Ziwei Xie <zw.xie@high-flyer.cn>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/auth.c
fs/ksmbd/auth.h
fs/ksmbd/connection.h
fs/ksmbd/mgmt/user_session.h
fs/ksmbd/smb2pdu.c