]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
cifs: fix lease break oops in xfstest generic/098
authorSteve French <stfrench@microsoft.com>
Sun, 11 Jun 2023 16:23:32 +0000 (11:23 -0500)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:19:12 +0000 (17:19 +0200)
commit3c1660b1a991f9e183e61a6712f51caba4595d3b
treea36152ae0b2a23bf9b263e487621a88cec65abba
parent89a04f2e77611308c536f672f13108a8cacc52af
cifs: fix lease break oops in xfstest generic/098

BugLink: https://bugs.launchpad.net/bugs/2033931
[ Upstream commit c774e6779f38bf36f0cce65e30793704bab4b0d7 ]

umount can race with lease break so need to check if
tcon->ses->server is still valid to send the lease
break response.

Reviewed-by: Bharath SM <bharathsm@microsoft.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Fixes: 59a556aebc43 ("SMB3: drop reference to cfile before sending oplock break")
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/cifs/file.c