OpenCloudOS-Kernel/fs/smb/client
Enzo Matsumiya 225de871dd smb: client: fix deadlock in smb2_find_smb_tcon()
commit 02c418774f76a0a36a6195c9dbf8971eb4130a15 upstream.

Unlock cifs_tcp_ses_lock before calling cifs_put_smb_ses() to avoid such
deadlock.

Cc: stable@vger.kernel.org
Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-16 13:47:48 +02:00
..
Kconfig fs/smb/client: Use common code in client 2023-08-30 08:55:52 -05:00
Makefile smb: client: move most of reparse point handling code to common file 2024-05-25 16:22:47 +02:00
asn1.c
cached_dir.c cifs: update the same create_guid on replay 2024-05-25 16:22:46 +02:00
cached_dir.h smb: client: make laundromat a delayed worker 2023-10-12 09:41:04 -05:00
cifs_debug.c smb: client: negotiate compression algorithms 2024-05-25 16:22:49 +02:00
cifs_debug.h
cifs_fs_sb.h
cifs_ioctl.h smb3: allow dumping session and tcon id to improve stats analysis and debugging 2023-11-28 17:20:09 +00:00
cifs_spnego.c cifs: spnego: add ';' in HOST_KEY_LEN 2023-11-28 17:19:54 +00:00
cifs_spnego.h
cifs_spnego_negtokeninit.asn1
cifs_swn.c
cifs_swn.h
cifs_unicode.c fs/smb/client: Use common code in client 2023-08-30 08:55:52 -05:00
cifs_unicode.h fs/smb/client: Use common code in client 2023-08-30 08:55:52 -05:00
cifsacl.c
cifsacl.h
cifsencrypt.c smb: Work around Clang __bdos() type confusion 2024-03-01 13:34:49 +01:00
cifsfs.c cifs: Add tracing for the cifs_tcon struct refcounting 2024-05-25 16:22:51 +02:00
cifsfs.h cifs: update internal module version number for cifs.ko 2023-09-07 00:06:04 -05:00
cifsglob.h cifs: Add tracing for the cifs_tcon struct refcounting 2024-05-25 16:22:51 +02:00
cifspdu.h smb: client: Fix struct_group() usage in __packed structs 2024-05-02 16:32:44 +02:00
cifsproto.h cifs: Add tracing for the cifs_tcon struct refcounting 2024-05-25 16:22:51 +02:00
cifsroot.c
cifssmb.c smb: client: reuse file lease key in compound operations 2024-05-25 16:22:47 +02:00
connect.c cifs: Add tracing for the cifs_tcon struct refcounting 2024-05-25 16:22:51 +02:00
dfs.c smb: client: guarantee refcounted children from parent session 2024-04-27 17:11:28 +02:00
dfs.h smb: client: guarantee refcounted children from parent session 2024-04-27 17:11:28 +02:00
dfs_cache.c smb: client: refresh referral without acquiring refpath_lock 2024-04-27 17:11:28 +02:00
dfs_cache.h smb: client: ensure to try all targets when finding nested links 2023-08-20 16:05:50 -05:00
dir.c smb3: add trace event for mknod 2024-05-25 16:22:51 +02:00
dns_resolve.c
dns_resolve.h
export.c
file.c cifs: fixes for get_inode_info 2024-05-25 16:22:50 +02:00
fs_context.c smb: client: negotiate compression algorithms 2024-05-25 16:22:49 +02:00
fs_context.h smb: client: negotiate compression algorithms 2024-05-25 16:22:49 +02:00
fscache.c cifs: Add tracing for the cifs_tcon struct refcounting 2024-05-25 16:22:51 +02:00
fscache.h cifs: Fix caching to try to do open O_WRONLY as rdwr on server 2024-04-10 16:36:00 +02:00
inode.c smb: client: fix NULL ptr deref in cifs_mark_open_handles_for_deleted_file() 2024-05-25 16:22:51 +02:00
ioctl.c smb3: add dynamic trace point for ioctls 2024-05-25 16:22:49 +02:00
link.c smb: client: allow creating symlinks via reparse points 2024-05-25 16:22:43 +02:00
misc.c cifs: Add tracing for the cifs_tcon struct refcounting 2024-05-25 16:22:51 +02:00
namespace.c smb: client: set correct id, uid and cruid for multiuser automounts 2024-02-23 09:25:13 +01:00
netlink.c
netlink.h
netmisc.c
nterr.c
nterr.h
ntlmssp.h cifs: Add client version details to NTLM authenticate message 2024-05-25 16:22:41 +02:00
readdir.c smb: client: parse uid, gid, mode and dev from WSL reparse points 2024-05-25 16:22:48 +02:00
reparse.c smb: client: set correct d_type for reparse DFS/DFSR and mount point 2024-05-25 16:22:48 +02:00
reparse.h smb: client: parse uid, gid, mode and dev from WSL reparse points 2024-05-25 16:22:48 +02:00
rfc1002pdu.h
sess.c cifs: remove unneeded return statement 2024-05-25 16:22:44 +02:00
smb1ops.c smb: client: introduce cifs_sfu_make_node() 2024-05-25 16:22:42 +02:00
smb2file.c
smb2glob.h smb: client: introduce SMB2_OP_QUERY_WSL_EA 2024-05-25 16:22:48 +02:00
smb2inode.c smb: client: introduce SMB2_OP_QUERY_WSL_EA 2024-05-25 16:22:48 +02:00
smb2maperror.c cifs: new nt status codes from MS-SMB2 2024-05-25 16:22:45 +02:00
smb2misc.c cifs: Add tracing for the cifs_tcon struct refcounting 2024-05-25 16:22:51 +02:00
smb2ops.c cifs: Add tracing for the cifs_tcon struct refcounting 2024-05-25 16:22:51 +02:00
smb2pdu.c cifs: Add tracing for the cifs_tcon struct refcounting 2024-05-25 16:22:51 +02:00
smb2pdu.h smb: smb2pdu.h: Avoid -Wflex-array-member-not-at-end warnings 2024-05-25 16:22:52 +02:00
smb2proto.h smb: client: add support for WSL reparse points 2024-05-25 16:22:48 +02:00
smb2status.h cifs: new nt status codes from MS-SMB2 2024-05-25 16:22:45 +02:00
smb2transport.c smb: client: fix deadlock in smb2_find_smb_tcon() 2024-06-16 13:47:48 +02:00
smbdirect.c smb3: Improve exception handling in allocate_mr_list() 2024-05-25 16:22:44 +02:00
smbdirect.h
smbencrypt.c smb: client: delete "true", "false" defines 2024-05-25 16:22:46 +02:00
smberr.h
trace.c
trace.h cifs: Add tracing for the cifs_tcon struct refcounting 2024-05-25 16:22:51 +02:00
transport.c smb3: fix lock ordering potential deadlock in cifs_sync_mid_result 2024-05-02 16:32:44 +02:00
unc.c
winucase.c
xattr.c smb3: fix caching of ctime on setxattr 2023-11-28 17:20:09 +00:00