diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2021-12-15 08:57:27 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-12-29 07:47:22 +0300 |
commit | ce53d365378cde71bb6596d79c257e600d951d29 (patch) | |
tree | 95c2922a9671661b1062260b13fda4db4a4436f1 /fs/ksmbd/mgmt/user_session.h | |
parent | 71cd9cb680cb5d536c0dcbddb1c1d0010d79b214 (diff) | |
download | linux-ce53d365378cde71bb6596d79c257e600d951d29.tar.xz |
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>
Diffstat (limited to 'fs/ksmbd/mgmt/user_session.h')
-rw-r--r-- | fs/ksmbd/mgmt/user_session.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ksmbd/mgmt/user_session.h b/fs/ksmbd/mgmt/user_session.h index 82289c3cbd2b..e241f16a3851 100644 --- a/fs/ksmbd/mgmt/user_session.h +++ b/fs/ksmbd/mgmt/user_session.h @@ -45,7 +45,6 @@ struct ksmbd_session { int state; __u8 *Preauth_HashValue; - struct ntlmssp_auth ntlmssp; char sess_key[CIFS_KEY_SIZE]; struct hlist_node hlist; |