diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-07-02 20:40:41 +0900 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-07-06 07:55:41 -0500 |
| commit | 3e67423336f08a28e9efaac66e842210f9421484 (patch) | |
| tree | 9168740d53741edae73eaa56f2240c8fa9531094 /rust/zerocopy/git@git.tavy.me:linux-stable.git | |
| parent | 1f12738b0ed7b89252271d71159c67e6349ef532 (diff) | |
ksmbd: mark rejected cross-dialect bindings as signed
Binding an SMB 2.1 session to an SMB 3.x connection is invalid because the
dialects do not match. ksmbd returns STATUS_INVALID_PARAMETER. The check
fails before attaching the referenced session to the request, so the error
response lacks SMB2_FLAGS_SIGNED.
A client requiring signing checks this flag before handling the status and
reports STATUS_ACCESS_DENIED instead of STATUS_INVALID_PARAMETER. Preserve
the signed flag for a signed binding request rejected with
STATUS_INVALID_PARAMETER. The client can then apply the special error path
without attempting to validate a response using incompatible signing
algorithms.
This fixes smb2.session.bind_negative_smb2to3s.
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
