linux-stable/fs/smb/client
Steve French 98c7ed29cd smb3: missing lock when picking channel
[ Upstream commit 8094a60024 ]

Coverity spotted a place where we should have been holding the
channel lock when accessing the ses channel index.

Addresses-Coverity: 1582039 ("Data race condition (MISSING_LOCK)")
Cc: stable@vger.kernel.org
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-05-17 11:55:53 +02:00
..
asn1.c
cached_dir.c smb3: fix Open files on server counter going negative 2024-04-17 11:18:22 +02:00
cached_dir.h
cifs_debug.c smb: client: fix potential UAF in cifs_stats_proc_show() 2024-04-10 16:28:34 +02:00
cifs_debug.h
cifs_dfs_ref.c cifs: use fs_context for automounts 2023-09-19 12:28:00 +02:00
cifs_fs_sb.h
cifs_ioctl.h smb3: allow dumping session and tcon id to improve stats analysis and debugging 2023-12-03 07:32:09 +01:00
cifs_spnego.c cifs: spnego: add ';' in HOST_KEY_LEN 2023-11-28 17:07:06 +00:00
cifs_spnego.h cifs: Replace remaining 1-element arrays 2024-05-02 16:29:27 +02:00
cifs_spnego_negtokeninit.asn1
cifs_swn.c
cifs_swn.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c
cifsacl.h
cifsencrypt.c smb: Work around Clang __bdos() type confusion 2024-03-01 13:26:26 +01:00
cifsfs.c smb: client: fix rename(2) regression against samba 2024-05-02 16:29:21 +02:00
cifsfs.h cifs: minor cleanup of some headers 2023-12-03 07:32:09 +01:00
cifsglob.h smb: client: fix potential UAF in cifs_debug_files_proc_show() 2024-04-10 16:28:33 +02:00
cifspdu.h smb: client: Fix struct_group() usage in __packed structs 2024-05-02 16:29:28 +02:00
cifsproto.h smb: client: fix potential deadlock when releasing mids 2023-11-28 17:07:15 +00:00
cifsroot.c
cifssmb.c smb: client, common: fix fortify warnings 2024-01-20 11:50:04 +01:00
connect.c smb: client: fix potential UAF in cifs_signal_cifsd_for_reconnect() 2024-04-10 16:28:34 +02:00
dfs_cache.c
dfs_cache.h
dir.c cifs: Fix caching to try to do open O_WRONLY as rdwr on server 2024-04-10 16:28:31 +02:00
dns_resolve.c
dns_resolve.h
export.c
file.c smb3: retrying on failed server close 2024-04-10 16:28:33 +02:00
fs_context.c cifs: reinstate original behavior again for forceuid/forcegid 2024-05-02 16:29:21 +02:00
fs_context.h cifs: reinstate original behavior again for forceuid/forcegid 2024-05-02 16:29:21 +02:00
fscache.c cifs: Fix duplicate fscache cookie warnings 2024-04-10 16:28:23 +02:00
fscache.h cifs: Fix caching to try to do open O_WRONLY as rdwr on server 2024-04-10 16:28:31 +02:00
inode.c cifs: Fix duplicate fscache cookie warnings 2024-04-10 16:28:23 +02:00
ioctl.c smb3: allow dumping session and tcon id to improve stats analysis and debugging 2023-12-03 07:32:09 +01:00
Kconfig
link.c
Makefile
misc.c smb: client: fix potential UAF in is_valid_oplock_break() 2024-04-10 16:28:34 +02:00
netlink.c
netlink.h
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c cifs: Replace remaining 1-element arrays 2024-05-02 16:29:27 +02:00
rfc1002pdu.h
sess.c cifs: failure to add channel on iface should bump up weight 2024-02-16 19:06:25 +01:00
smb1ops.c smb3: retrying on failed server close 2024-04-10 16:28:33 +02:00
smb2file.c smb3: Replace smb2pdu 1-element arrays with flex-arrays 2024-01-10 17:10:37 +01:00
smb2glob.h
smb2inode.c smb: client: fix broken file attrs with nodfs mounts 2023-07-19 16:21:44 +02:00
smb2maperror.c
smb2misc.c smb: client: fix potential UAF in smb2_is_valid_lease_break() 2024-04-10 16:28:34 +02:00
smb2ops.c smb: client: fix potential UAF in smb2_is_network_name_deleted() 2024-04-10 16:28:34 +02:00
smb2pdu.c cifs: Replace remaining 1-element arrays 2024-05-02 16:29:27 +02:00
smb2pdu.h smb: client: Fix struct_group() usage in __packed structs 2024-05-02 16:29:28 +02:00
smb2proto.h smb: client: fix potential OOBs in smb2_parse_contexts() 2024-02-23 09:12:50 +01:00
smb2status.h
smb2transport.c cifs: fix check of rc in function generate_smb3signingkey 2023-11-28 17:07:07 +00:00
smbdirect.c
smbdirect.h
smbencrypt.c
smberr.h
trace.c
trace.h
transport.c smb3: missing lock when picking channel 2024-05-17 11:55:53 +02:00
unc.c
winucase.c
xattr.c smb3: fix caching of ctime on setxattr 2023-11-28 17:07:15 +00:00