linux-stable/fs/smb/client
Steve French 05eedb5abc smb3: fix Open files on server counter going negative
commit 28e0947651 upstream.

We were decrementing the count of open files on server twice
for the case where we were closing cached directories.

Fixes: 8e843bf38f ("cifs: return a single-use cfid if we did not get a lease")
Cc: stable@vger.kernel.org
Acked-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-17 11:19:24 +02:00
..
Kconfig fs/smb/client: Use common code in client 2023-08-30 08:55:52 -05:00
Makefile smb: client: get rid of dfs code dep in namespace.c 2023-08-20 16:05:50 -05:00
asn1.c
cached_dir.c smb3: fix Open files on server counter going negative 2024-04-17 11:19:24 +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: fix potential UAF in cifs_stats_proc_show() 2024-04-10 16:36:05 +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 smb3: retrying on failed server close 2024-04-10 16:36:04 +02:00
cifsfs.h cifs: update internal module version number for cifs.ko 2023-09-07 00:06:04 -05:00
cifsglob.h smb: client: fix potential UAF in cifs_debug_files_proc_show() 2024-04-10 16:36:04 +02:00
cifspdu.h smb: client, common: fix fortify warnings 2024-01-20 11:51:38 +01:00
cifsproto.h cifs: make cifs_chan_update_iface() a void function 2024-04-03 15:28:34 +02:00
cifsroot.c
cifssmb.c smb: client: fix hardlinking of reparse points 2024-02-05 20:14:17 +00:00
connect.c smb: client: fix potential UAF in cifs_signal_cifsd_for_reconnect() 2024-04-10 16:36:05 +02:00
dfs.c cifs: change tcon status when need_reconnect is set on it 2024-03-01 13:34:56 +01:00
dfs.h smb: client: get rid of dfs code dep in namespace.c 2023-08-20 16:05:50 -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
dir.c cifs: Fix caching to try to do open O_WRONLY as rdwr on server 2024-04-10 16:36:00 +02:00
dns_resolve.c
dns_resolve.h
export.c
file.c smb3: retrying on failed server close 2024-04-10 16:36:04 +02:00
fs_context.c smb: client: serialise cifs_construct_tcon() with cifs_mount_mutex 2024-04-10 16:36:04 +02:00
fs_context.h smb: client: serialise cifs_construct_tcon() with cifs_mount_mutex 2024-04-10 16:36:04 +02:00
fscache.c cifs: Fix duplicate fscache cookie warnings 2024-04-10 16:35:43 +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 cifs: Fix duplicate fscache cookie warnings 2024-04-10 16:35:43 +02:00
ioctl.c smb: client: fix potential UAF in cifs_dump_full_key() 2024-04-10 16:36:05 +02:00
link.c smb: client: fix hardlinking of reparse points 2024-02-05 20:14:17 +00:00
misc.c smb: client: fix potential UAF in is_valid_oplock_break() 2024-04-10 16:36:05 +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
readdir.c cifs: prevent updating file size from server if we have a read/write lease 2024-04-03 15:28:30 +02:00
rfc1002pdu.h
sess.c cifs: reduce warning log level for server not advertising interfaces 2024-04-03 15:28:34 +02:00
smb1ops.c smb3: retrying on failed server close 2024-04-10 16:36:04 +02:00
smb2file.c
smb2glob.h
smb2inode.c smb: client: fix hardlinking of reparse points 2024-02-05 20:14:17 +00:00
smb2maperror.c smb3: remove duplicate error mapping 2023-09-20 16:04:51 -05:00
smb2misc.c smb: client: fix potential UAF in smb2_is_valid_lease_break() 2024-04-10 16:36:05 +02:00
smb2ops.c smb: client: fix potential UAF in smb2_is_network_name_deleted() 2024-04-10 16:36:05 +02:00
smb2pdu.c smb3: retrying on failed server close 2024-04-10 16:36:04 +02:00
smb2pdu.h smb: client, common: fix fortify warnings 2024-01-20 11:51:38 +01:00
smb2proto.h smb: client: fix hardlinking of reparse points 2024-02-05 20:14:17 +00:00
smb2status.h
smb2transport.c cifs: handle cases where a channel is closed 2024-01-31 16:18:48 -08: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 smb: client: increase number of PDUs allowed in a compound request 2024-03-01 13:34:52 +01:00
unc.c
winucase.c
xattr.c smb3: fix caching of ctime on setxattr 2023-11-28 17:20:09 +00:00