diff options
author | 2022-09-22 23:36:34 +0900 | |
---|---|---|
committer | 2022-10-05 01:15:44 -0500 | |
commit | af705ef2b0ded0d8f54c238fdf3c17a1d47ad924 (patch) | |
tree | bc61c27e0dc14e62b584bc8dc9c60bc25cc992ba /scripts/generate_rust_analyzer.py | |
parent | ksmbd: fix endless loop when encryption for response fails (diff) | |
download | wireguard-linux-af705ef2b0ded0d8f54c238fdf3c17a1d47ad924.tar.xz wireguard-linux-af705ef2b0ded0d8f54c238fdf3c17a1d47ad924.zip |
ksmbd: fix encryption failure issue for session logoff response
If client send encrypted session logoff request on seal mount,
Encryption for that response fails.
ksmbd: Could not get encryption key
CIFS: VFS: cifs_put_smb_ses: Session Logoff failure rc=-512
Session lookup fails in ksmbd_get_encryption_key() because sess->state is
set to SMB2_SESSION_EXPIRED in session logoff. There is no need to do
session lookup again to encrypt the response. This patch change to use
ksmbd_session in ksmbd_work.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions