linux-yocto/fs/smb/client
Paulo Alcantara d3927e55c9 smb: client: fix potential race in cifs_put_tcon()
commit c32b624fa4 upstream.

dfs_cache_refresh() delayed worker could race with cifs_put_tcon(), so
make sure to call list_replace_init() on @tcon->dfs_ses_list after
kworker is cancelled or finished.

Fixes: 4f42a8b54b ("smb: client: fix DFS interlink failover")
Signed-off-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>
2025-07-17 18:35:22 +02:00
..
asn1.c smb3: add support for IAKerb 2025-03-22 12:50:49 -07:00
cached_dir.c smb: Log an error when close_all_cached_dirs fails 2025-06-27 11:09:03 +01:00
cached_dir.h smb: improve directory cache reuse for readdir operations 2025-06-27 11:08:59 +01:00
cifs_debug.c
cifs_debug.h
cifs_fs_sb.h
cifs_ioctl.h
cifs_spnego_negtokeninit.asn1
cifs_spnego.c smb3: add support for IAKerb 2025-03-22 12:50:49 -07:00
cifs_spnego.h
cifs_swn.c
cifs_swn.h
cifs_unicode.c
cifs_unicode.h
cifsacl.c cifs: add validation check for the fields in smb_aces 2025-06-04 14:41:55 +02:00
cifsacl.h smb/client: rename cifs_ace to smb_ace 2025-01-09 13:31:39 +01:00
cifsencrypt.c
cifsfs.c smb: client: destroy cfid_put_wq on module exit 2025-01-09 13:32:04 +01:00
cifsfs.h
cifsglob.h smb: client: fix DFS interlink failover 2025-07-17 18:35:18 +02:00
cifspdu.h cifs: Correctly set SMB1 SessionKey field in Session Setup Request 2025-07-06 11:00:05 +02:00
cifsproto.h cifs: all initializations for tcon should happen in tcon_info_alloc 2025-07-17 18:35:18 +02:00
cifsroot.c
cifssmb.c cifs: Correctly set SMB1 SessionKey field in Session Setup Request 2025-07-06 11:00:05 +02:00
connect.c smb: client: fix potential race in cifs_put_tcon() 2025-07-17 18:35:22 +02:00
dfs_cache.c smb: client: fix DFS interlink failover 2025-07-17 18:35:18 +02:00
dfs_cache.h
dfs.c smb: client: fix DFS interlink failover 2025-07-17 18:35:18 +02:00
dfs.h smb: client: fix DFS interlink failover 2025-07-17 18:35:18 +02:00
dir.c smb: client: fix order of arguments of tracepoints 2025-02-17 09:40:15 +01:00
dns_resolve.c
dns_resolve.h
export.c
file.c smb3 client: fix open hardlink on deferred close file error 2025-04-25 10:45:50 +02:00
fs_context.c smb: client: Store original IO parameters and prevent zero IO sizes 2025-06-04 14:41:54 +02:00
fs_context.h smb: client: fix DFS interlink failover 2025-07-17 18:35:18 +02:00
fscache.c
fscache.h
inode.c cifs: Ensure that all non-client-specific reparse points are processed by the server 2025-04-25 10:45:33 +02:00
ioctl.c
Kconfig
link.c cifs: Fix querying and creating MF symlinks over SMB1 2025-06-04 14:41:54 +02:00
Makefile
misc.c cifs: all initializations for tcon should happen in tcon_info_alloc 2025-07-17 18:35:18 +02:00
namespace.c smb: client: fix DFS interlink failover 2025-07-17 18:35:18 +02:00
netlink.c
netlink.h
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c smb: client: fix readdir returning wrong type with POSIX extensions 2025-07-10 16:03:19 +02:00
reparse.c cifs: Remove duplicate fattr->cf_dtype assignment from wsl_to_fattr() function 2025-06-27 11:09:04 +01:00
reparse.h cifs: Fix parsing native symlinks relative to the export 2024-12-09 10:32:57 +01:00
rfc1002pdu.h
sess.c cifs: Fix encoding of SMB1 Session Setup NTLMSSP Request in non-UNICODE mode 2025-07-06 11:00:05 +02:00
smb1ops.c cifs: Fix changing times and read-only attr over SMB1 smb_set_file_info() function 2025-06-04 14:42:16 +02:00
smb2file.c cifs: Add fallback for SMB2 CREATE without FILE_READ_ATTRIBUTES 2025-06-04 14:41:53 +02:00
smb2glob.h
smb2inode.c smb: client: fix order of arguments of tracepoints 2025-02-17 09:40:15 +01:00
smb2maperror.c
smb2misc.c cifs: avoid NULL pointer dereference in dbg call 2025-04-25 10:45:32 +02:00
smb2ops.c smb: client: Store original IO parameters and prevent zero IO sizes 2025-06-04 14:41:54 +02:00
smb2pdu.c smb: client: fix warning when reconnecting channel 2025-07-10 16:03:10 +02:00
smb2pdu.h smb/client: rename cifs_sid to smb_sid 2025-01-09 13:31:38 +01:00
smb2proto.h smb: client: change lease epoch type from unsigned int to __u16 2025-02-17 09:40:15 +01:00
smb2status.h
smb2transport.c smb: client: fix use-after-free of signing key 2025-01-09 13:31:39 +01:00
smbdirect.c
smbdirect.h
smbencrypt.c
smberr.h
trace.c
trace.h smb: client: remove \t from TP_printk statements 2025-07-10 16:03:12 +02:00
transport.c cifs: deal with the channel loading lag while picking channels 2025-06-27 11:08:58 +01:00
unc.c
winucase.c
xattr.c smb/client: rename cifs_ntsd to smb_ntsd 2025-01-09 13:31:38 +01:00