Skip to content
Commit f86a1a74 authored by Namjae Jeon's avatar Namjae Jeon Committed by Greg Kroah-Hartman
Browse files

ksmbd: fix multi session connection failure

[ Upstream commit ce53d365

 ]

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: default avatarZiwei Xie <zw.xie@high-flyer.cn>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Stable-dep-of: 7b432337

 ("ksmbd: fix deadlock in ksmbd_find_crypto_ctx()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent bb3b772f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment