linux/fs/smb/client
Paulo Alcantara 81ba109599 smb: client: prevent new fids from being removed by laundromat
Check if @cfid->time is set in laundromat so we guarantee that only
fully cached fids will be selected for removal.  While we're at it,
add missing locks to protect access of @cfid fields in order to avoid
races with open_cached_dir() and cfids_laundromat_worker(),
respectively.

Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
2023-10-12 09:41:32 -05:00
..
asn1.c
cached_dir.c smb: client: prevent new fids from being removed by laundromat 2023-10-12 09:41:32 -05:00
cached_dir.h smb: client: make laundromat a delayed worker 2023-10-12 09:41:04 -05:00
cifs_debug.c SMB3: rename macro CIFS_SERVER_IS_CHAN to avoid confusion 2023-08-30 08:55:02 -05:00
cifs_debug.h
cifs_fs_sb.h
cifs_ioctl.h
cifs_spnego_negtokeninit.asn1
cifs_spnego.c
cifs_spnego.h
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
cifsfs.c smb3: allow controlling maximum number of cached directories 2023-09-07 00:06:04 -05:00
cifsfs.h cifs: update internal module version number for cifs.ko 2023-09-07 00:06:04 -05:00
cifsglob.h cifs: Fix UAF in cifs_demultiplex_thread() 2023-09-19 22:02:54 -05:00
cifspdu.h
cifsproto.h smb3: do not start laundromat thread when dir leases 2023-09-19 13:32:02 -05:00
cifsroot.c
cifssmb.c cifs: fix charset issue in reconnection 2023-07-25 00:31:24 -05:00
connect.c smb: client: do not start laundromat thread on nohandlecache 2023-10-04 16:21:15 -05:00
dfs_cache.c smb: client: ensure to try all targets when finding nested links 2023-08-20 16:05:50 -05:00
dfs_cache.h smb: client: ensure to try all targets when finding nested links 2023-08-20 16:05:50 -05:00
dfs.c smb: client: get rid of dfs code dep in namespace.c 2023-08-20 16:05:50 -05:00
dfs.h smb: client: get rid of dfs code dep in namespace.c 2023-08-20 16:05:50 -05:00
dir.c smb: client: get rid of dfs naming in automount code 2023-08-20 16:05:50 -05:00
dns_resolve.c
dns_resolve.h
export.c
file.c v6.6-vfs.ctime 2023-08-28 09:31:32 -07:00
fs_context.c fs/smb/client: Reset password pointer to NULL 2023-09-28 14:49:51 -05:00
fs_context.h smb3: allow controlling maximum number of cached directories 2023-09-07 00:06:04 -05:00
fscache.c smb: propagate error code of extract_sharename() 2023-08-30 23:38:49 -05:00
fscache.h smb: convert to ctime accessor functions 2023-07-24 10:30:05 +02:00
inode.c smb3: correct places where ENOTSUPP is used instead of preferred EOPNOTSUPP 2023-09-15 01:10:40 -05:00
ioctl.c cifs: add missing return value check for cifs_sb_tlink 2023-07-26 15:41:27 -05:00
Kconfig fs/smb/client: Use common code in client 2023-08-30 08:55:52 -05:00
link.c
Makefile smb: client: get rid of dfs code dep in namespace.c 2023-08-20 16:05:50 -05:00
misc.c smb3: do not start laundromat thread when dir leases 2023-09-19 13:32:02 -05:00
namespace.c smb: cilent: set reparse mount points as automounts 2023-08-20 16:05:50 -05:00
netlink.c
netlink.h
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c smb: cilent: set reparse mount points as automounts 2023-08-20 16:05:50 -05:00
rfc1002pdu.h
sess.c SMB3: rename macro CIFS_SERVER_IS_CHAN to avoid confusion 2023-08-30 08:55:02 -05:00
smb1ops.c smb: client: do not query reparse points twice on symlinks 2023-08-20 16:05:50 -05:00
smb2file.c
smb2glob.h
smb2inode.c smb: client: handle STATUS_IO_REPARSE_TAG_NOT_HANDLED 2023-09-20 16:12:09 -05:00
smb2maperror.c smb3: remove duplicate error mapping 2023-09-20 16:04:51 -05:00
smb2misc.c SMB3: rename macro CIFS_SERVER_IS_CHAN to avoid confusion 2023-08-30 08:55:02 -05:00
smb2ops.c smb3: correct places where ENOTSUPP is used instead of preferred EOPNOTSUPP 2023-09-15 01:10:40 -05:00
smb2pdu.c smb3: fix confusing debug message 2023-09-20 19:50:05 -05:00
smb2pdu.h
smb2proto.h smb: client: move some params to cifs_open_info_data 2023-08-20 16:05:50 -05:00
smb2status.h
smb2transport.c SMB3: rename macro CIFS_SERVER_IS_CHAN to avoid confusion 2023-08-30 08:55:02 -05:00
smbdirect.c smb3: Add dynamic trace points for RDMA (smbdirect) reconnect 2023-09-19 11:03:24 -05:00
smbdirect.h
smbencrypt.c
smberr.h
trace.c
trace.h smb3: Add dynamic trace points for RDMA (smbdirect) reconnect 2023-09-19 11:03:24 -05:00
transport.c cifs: Fix UAF in cifs_demultiplex_thread() 2023-09-19 22:02:54 -05:00
unc.c
winucase.c
xattr.c