diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-03-13 10:00:58 +0900 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-03-17 21:45:29 -0500 |
| commit | 282343cf8a4a5a3603b1cb0e17a7083e4a593b03 (patch) | |
| tree | 77d589770bcf463c53f0e3fe363f4fe672ac11c4 | |
| parent | 5258572aa5fd5a7ed01b123b28241e0281b6fb9b (diff) | |
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>
| -rw-r--r-- | fs/smb/server/smb2pdu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c index 9f7ff7491e9a..78d2d79d09b4 100644 --- a/fs/smb/server/smb2pdu.c +++ b/fs/smb/server/smb2pdu.c @@ -1948,6 +1948,7 @@ out_err: } } smb2_set_err_rsp(work); + conn->binding = false; } else { unsigned int iov_len; |
