]> 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:33:37 +0000 (14:33 +0200)
commit128a0f437ed4018bd4763fd580bdd75e758529a0
tree7a0c6226bf473c2fcb741438b85da9c68e82a115
parenta6b594868268c3a7bfaeced912525cd2c445529a
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