]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ksmbd: unset conn->binding on failed binding request
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 13 Mar 2026 01:00:58 +0000 (10:00 +0900)
committerSteve French <stfrench@microsoft.com>
Wed, 18 Mar 2026 02:45:29 +0000 (21:45 -0500)
commit282343cf8a4a5a3603b1cb0e17a7083e4a593b03
tree77d589770bcf463c53f0e3fe363f4fe672ac11c4
parent5258572aa5fd5a7ed01b123b28241e0281b6fb9b
ksmbd: unset conn->binding on failed binding request

When a multichannel SMB2_SESSION_SETUP request with
SMB2_SESSION_REQ_FLAG_BINDING fails ksmbd sets conn->binding = true
but never clears it on the error path. This leaves the connection in
a binding state where all subsequent ksmbd_session_lookup_all() calls
fall back to the global sessions table. This fix it by clearing
conn->binding = false in the error path.

Cc: stable@vger.kernel.org
Reported-by: Hyunwoo Kim <imv4bel@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c