diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-07-02 19:37:53 +0900 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-07-06 07:55:41 -0500 |
| commit | 9e8ad620ddfde5a5f4ef58372e3805e9388cb0f4 (patch) | |
| tree | 54e367ac4f59c50d8dcbe3d3fcf7004b738d2e0f /rust/zerocopy/git@git.tavy.me:linux-stable.git | |
| parent | 216c5aba4ebde1a6e85d7831c0cf39a9a2ad7a38 (diff) | |
ksmbd: mark invalid session responses as signed
When a signed request uses a session that is not registered on the
connection, ksmbd returns STATUS_USER_SESSION_DELETED before reaching the
normal response signing path. The response therefore lacks
SMB2_FLAGS_SIGNED.
Clients that require signing check this flag before handling
STATUS_USER_SESSION_DELETED and replace the server status with
STATUS_ACCESS_DENIED when it is absent. The protocol permits this error
response to skip signature verification because the connection has no
matching session key.
Preserve SMB2_FLAGS_SIGNED on the early error response when the request was
signed. This lets the client propagate STATUS_USER_SESSION_DELETED.
It fixes smb2.session.bind2.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'rust/zerocopy/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
