diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-13 09:03:00 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-17 22:38:24 +0900 |
| commit | 2a0e037648da5695ab56dace74bda28eb6402b5f (patch) | |
| tree | 75e9dcc46ac2f40b5d5afbfe1523c9a44b71cbb6 /scripts | |
| parent | c50e628122aed077695669e25b842e778511a43d (diff) | |
| download | linux-2a0e037648da5695ab56dace74bda28eb6402b5f.tar.gz linux-2a0e037648da5695ab56dace74bda28eb6402b5f.zip | |
ksmbd: encrypt interim responses to encrypted requests
The normal response path applies an SMB3 transform when the request was
encrypted. Async interim responses, completed compound prefixes and two
CHANGE_NOTIFY cleanup paths write their synthetic response work directly,
bypassing that encryption step.
A packet capture shows FE SMB2 STATUS_PENDING, CREATE and CHANGE_NOTIFY
responses following FD SMB3 requests. The client resets the connection
immediately after receiving those plaintext responses.
Send synthetic interim work through a common helper that applies the
session encryption transform first. A compound prefix shares the original
work's response iov, which encryption would replace in place, so flatten it
into an independently owned work before encrypting and sending it.
Fixes: 64bfa9d49026 ("smb/server: use MSG_EOR for async interim response")
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
