diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-13 17:05:49 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-17 22:38:25 +0900 |
| commit | 12a6680ce59bcd431730c9f049caddb017964c64 (patch) | |
| tree | 6bc9e43909d0edd43e7a38704b2ccb508f8e2237 /scripts/stackusage | |
| parent | 2a0e037648da5695ab56dace74bda28eb6402b5f (diff) | |
| download | linux-12a6680ce59bcd431730c9f049caddb017964c64.tar.gz linux-12a6680ce59bcd431730c9f049caddb017964c64.zip | |
ksmbd: disconnect on SMB3 decryption failure
MS-SMB2 requires the server to disconnect a connection when an
encrypted transform cannot be associated with a session or fails
authenticated decryption. This includes an encrypted request that
still carries a SessionId invalidated through PreviousSessionId.
Move the connection to EXITING and shut down its transport when
decrypt_req() fails. Add the missing TCP shutdown callback so a receive
blocked in kernel_recvmsg() is released; SMB Direct already provides
the corresponding callback.
Plaintext requests using an invalidated SessionId do not take this
path and continue to receive STATUS_USER_SESSION_DELETED.
Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3")
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
