diff options
author | Namjae Jeon | 2023-12-31 16:13:05 +0900 |
---|---|---|
committer | Greg Kroah-Hartman | 2024-01-05 15:18:33 +0100 |
commit | 6584ca894f30c9674fb1508fd16aa2cf909361b9 (patch) | |
tree | 016b9edf309710cc9dd06a2fd6fef1755c125567 /arch | |
parent | b3a843caed292c4f986d28edbfe1c171e7f5b8d6 (diff) |
ksmbd: fix race condition from parallel smb2 logoff requests
[ Upstream commit 7ca9da7d873ee8024e9548d3366101c2b6843eab ]
If parallel smb2 logoff requests come in before closing door, running
request count becomes more than 1 even though connection status is set to
KSMBD_SESS_NEED_RECONNECT. It can't get condition true, and sleep forever.
This patch fix race condition problem by returning error if connection
status was already set to KSMBD_SESS_NEED_RECONNECT.
Reported-by: luosili <rootlab@huawei.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions