]> 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:37:35 +0000 (14:37 +0200)
commita32086cc6444a38d06cb0ccb69dde3d2773e72a7
tree0def3528f64cd358763ade117326d26482cc737d
parent1de7fec4d3012672e31eeb6679ea60f7ca010ef9
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