Paulo Alcantara (SUSE)
be178a5eae
cifs: Fix potential deadlock when updating vol in cifs_reconnect()
...
commit 06d57378bcc9b2c33640945174842115593795d1 upstream.
We can't acquire volume lock while refreshing the DFS cache because
cifs_reconnect() may call dfs_cache_update_vol() while we are walking
through the volume list.
To prevent that, make vol_info refcounted, create a temp list with all
volumes eligible for refreshing, and then use it without any locks
held.
Besides, replace vol_lock with a spinlock and protect cache_ttl from
concurrent accesses or changes.
Signed-off-by: Paulo Alcantara (SUSE) <[email protected] >
Signed-off-by: Steve French <[email protected] >
Signed-off-by: Rishabh Bhatnagar <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2023-06-28 10:18:37 +02:00
..
asn1.c
cache.c
cifs_debug.c
cifs_debug.h
cifs_dfs_ref.c
cifs_fs_sb.h
cifs_ioctl.h
cifs_spnego.c
cifs_spnego.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c
SMB3: Backup intent flag missing from some more ops
2023-03-17 08:32:50 +01:00
cifsacl.h
cifsencrypt.c
cifsfs.c
SMB3: Backup intent flag missing from some more ops
2023-03-17 08:32:50 +01:00
cifsfs.h
cifs: fix DFS traversal oops without CONFIG_CIFS_DFS_UPCALL
2023-04-05 11:16:45 +02:00
cifsglob.h
SMB3: Backup intent flag missing from some more ops
2023-03-17 08:32:50 +01:00
cifspdu.h
cifsproto.h
smb3: fix problem with null cifs super block with previous patch
2023-04-20 12:07:32 +02:00
cifsroot.c
cifssmb.c
cifs: prevent infinite recursion in CIFSGetDFSRefer()
2023-04-05 11:16:45 +02:00
connect.c
cifs: handle empty list of targets in cifs_reconnect()
2023-06-14 10:59:59 +02:00
dfs_cache.c
cifs: Fix potential deadlock when updating vol in cifs_reconnect()
2023-06-28 10:18:37 +02:00
dfs_cache.h
dir.c
SMB3: Backup intent flag missing from some more ops
2023-03-17 08:32:50 +01:00
dns_resolve.c
dns_resolve.h
export.c
file.c
SMB3: Backup intent flag missing from some more ops
2023-03-17 08:32:50 +01:00
fscache.c
fscache.h
inode.c
SMB3: Backup intent flag missing from some more ops
2023-03-17 08:32:50 +01:00
ioctl.c
SMB3: Backup intent flag missing from some more ops
2023-03-17 08:32:50 +01:00
Kconfig
link.c
SMB3: Backup intent flag missing from some more ops
2023-03-17 08:32:50 +01:00
Makefile
misc.c
cifs: fix oops during encryption
2023-01-18 11:41:42 +01:00
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c
rfc1002pdu.h
sess.c
smb1ops.c
SMB3: Backup intent flag missing from some more ops
2023-03-17 08:32:50 +01:00
smb2file.c
smb2glob.h
smb2inode.c
SMB3: Backup intent flag missing from some more ops
2023-03-17 08:32:50 +01:00
smb2maperror.c
smb2misc.c
smb2ops.c
cifs: fix pcchunk length type in smb2_copychunk_range
2023-05-17 11:36:00 +02:00
smb2pdu.c
cifs: do not include page data when checking signature
2023-01-24 07:18:00 +01:00
smb2pdu.h
smb2proto.h
SMB3: Backup intent flag missing from some more ops
2023-03-17 08:32:50 +01:00
smb2status.h
smb2transport.c
smbdirect.c
cifs: Fix warning and UAF when destroy the MR list
2023-03-11 16:43:49 +01:00
smbdirect.h
smbencrypt.c
smberr.h
smbfsctl.h
trace.c
trace.h
transport.c
cifs: Move the in_send statistic to __smb_send_rqst()
2023-03-22 13:28:03 +01:00
winucase.c
xattr.c