diff options
author | Aurelien Aptel <aaptel@suse.com> | 2019-07-17 12:46:28 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-07-18 20:51:35 +0200 |
commit | 7e5a70ad88b1e6f6d9b934b2efb41afff496820f (patch) | |
tree | 9c13366cebf1ad4eccc41e40ca9005e55305d2f5 /fs/cifs/smb2proto.h | |
parent | Merge tag '4.3-rc-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6 (diff) | |
download | linux-7e5a70ad88b1e6f6d9b934b2efb41afff496820f.tar.xz linux-7e5a70ad88b1e6f6d9b934b2efb41afff496820f.zip |
CIFS: fix deadlock in cached root handling
Prevent deadlock between open_shroot() and
cifs_mark_open_files_invalid() by releasing the lock before entering
SMB2_open, taking it again after and checking if we still need to use
the result.
Link: https://lore.kernel.org/linux-cifs/684ed01c-cbca-2716-bc28-b0a59a0f8521@prodrive-technologies.com/T/#u
Fixes: 3d4ef9a15343 ("smb3: fix redundant opens on root")
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Diffstat (limited to 'fs/cifs/smb2proto.h')
0 files changed, 0 insertions, 0 deletions