linux-stable/fs/smb/client
Steve French ca5962bdc5 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:18:22 +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_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 smb3: retrying on failed server close 2024-04-10 16:28:33 +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, common: fix fortify warnings 2024-01-20 11:50:04 +01: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 smb3: clarify mount warning 2024-03-01 13:26:30 +01:00
fs_context.h
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 smb: client: set correct d_type for reparse points under DFS mounts 2024-03-01 13:26:30 +01: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 smb3: retrying on failed server close 2024-04-10 16:28:33 +02:00
smb2pdu.h smb: client, common: fix fortify warnings 2024-01-20 11:50:04 +01: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 smb: client: increase number of PDUs allowed in a compound request 2024-03-01 13:26:28 +01:00
unc.c
winucase.c
xattr.c smb3: fix caching of ctime on setxattr 2023-11-28 17:07:15 +00:00