]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: fix multichannel connection failure
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 24 Mar 2025 11:19:20 +0000 (20:19 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:27 +0000 (14:39 +0200)
commite0b32b6f0f13ea6ec878afb26f4f273275d4786f
tree3123f59e052d40452a9769637e1f2f8b7fc66982
parent3e341dbd5f5a6e5a558e67da80731dc38a7f758c
ksmbd: fix multichannel connection failure

[ Upstream commit c1883049aa9b2b7dffd3a68c5fc67fa92c174bd9 ]

ksmbd check that the session of second channel is in the session list of
first connection. If it is in session list, multichannel connection
should not be allowed.

Fixes: b95629435b84 ("ksmbd: fix racy issue from session lookup and expire")
Reported-by: Sean Heelan <seanheelan@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/server/mgmt/user_session.c
fs/smb/server/mgmt/user_session.h
fs/smb/server/smb2pdu.c