diff options
| author | Namjae Jeon <[email protected]> | 2024-08-17 05:03:49 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2024-08-18 22:02:36 +0000 |
| commit | 76e98a158b207771a6c9a0de0a60522a446a3447 (patch) | |
| tree | 92b7c2596874cc7f0536d18d2135b0b6b30c6849 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | ksmbd: Use unsafe_memcpy() for ntlm_negotiate (diff) | |
| download | kernel-76e98a158b207771a6c9a0de0a60522a446a3447.tar.gz kernel-76e98a158b207771a6c9a0de0a60522a446a3447.zip | |
ksmbd: fix race condition between destroy_previous_session() and smb2 operations()
If there is ->PreviousSessionId field in the session setup request,
The session of the previous connection should be destroyed.
During this, if the smb2 operation requests in the previous session are
being processed, a racy issue could happen with ksmbd_destroy_file_table().
This patch sets conn->status to KSMBD_SESS_NEED_RECONNECT to block
incoming operations and waits until on-going operations are complete
(i.e. idle) before desctorying the previous session.
Fixes: c8efcc786146 ("ksmbd: add support for durable handles v1/v2")
Cc: [email protected] # v6.6+
Reported-by: [email protected] # ZDI-CAN-25040
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
