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/connection.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/connection.h')
-rw-r--r-- | fs/ksmbd/connection.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/ksmbd/connection.h b/fs/ksmbd/connection.h index e5403c587a58..72dfd155b5bf 100644 --- a/fs/ksmbd/connection.h +++ b/fs/ksmbd/connection.h @@ -72,12 +72,7 @@ struct ksmbd_conn { int connection_type; struct ksmbd_stats stats; char ClientGUID[SMB2_CLIENT_GUID_SIZE]; - union { - /* pending trans request table */ - struct trans_state *recent_trans; - /* Used by ntlmssp */ - char *ntlmssp_cryptkey; - }; + struct ntlmssp_auth ntlmssp; spinlock_t llist_lock; struct list_head lock_list; |