linux_dsm_epyc7002/fs/cifs
Adam McCoy a481379960 cifs: fix leaked reference on requeued write
Failed async writes that are requeued may not clean up a refcount
on the file, which can result in a leaked open. This scenario arises
very reliably when using persistent handles and a reconnect occurs
while writing.

cifs_writev_requeue only releases the reference if the write fails
(rc != 0). The server->ops->async_writev operation will take its own
reference, so the initial reference can always be released.

Signed-off-by: Adam McCoy <adam@forsedomani.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
2020-05-14 17:47:01 -05: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
cifsacl.h
cifsencrypt.c
cifsfs.c smb3: enable swap on SMB3 mounts 2020-04-10 13:32:32 -05:00
cifsfs.h
cifsglob.h cifs: minor update to comments around the cifs_tcp_ses_lock mutex 2020-04-21 23:51:18 -05:00
cifspdu.h
cifsproto.h
cifsroot.c
cifssmb.c cifs: fix leaked reference on requeued write 2020-05-14 17:47:01 -05:00
connect.c cifs: do not share tcons with DFS 2020-04-22 20:22:08 -05:00
dfs_cache.c
dfs_cache.h
dir.c
dns_resolve.c
dns_resolve.h
export.c
file.c cifs: Fix null pointer check in cifs_read 2020-05-14 10:30:03 -05:00
fscache.c
fscache.h
inode.c CIFS: Spelling s/EACCESS/EACCES/ 2020-05-06 10:21:40 -05:00
ioctl.c
Kconfig smb3: smbdirect support can be configured by default 2020-04-07 13:39:00 -05:00
link.c
Makefile
misc.c cifs: ensure correct super block for DFS reconnect 2020-04-22 20:27:30 -05:00
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c smb3: change noisy error message to FYI 2020-04-09 13:28:24 -05:00
rfc1002pdu.h
sess.c
smb1ops.c
smb2file.c
smb2glob.h
smb2inode.c
smb2maperror.c
smb2misc.c
smb2ops.c cifs: fix uninitialised lease_key in open_shroot() 2020-04-22 20:29:11 -05:00
smb2pdu.c cifs: dump the session id and keys also for SMB2 sessions 2020-04-15 21:15:03 -05:00
smb2pdu.h
smb2proto.h cifs: Allocate crypto structures on the fly for calculating signatures of incoming packets 2020-04-07 12:41:16 -05:00
smb2status.h
smb2transport.c smb3: remove overly noisy debug line in signing errors 2020-04-16 12:23:40 -05:00
smbdirect.c cifs: smbd: Do not schedule work to send immediate packet on every receive 2020-04-07 12:41:16 -05:00
smbdirect.h cifs: smbd: Do not schedule work to send immediate packet on every receive 2020-04-07 12:41:16 -05:00
smbencrypt.c
smberr.h
smbfsctl.h
trace.c
trace.h
transport.c
winucase.c
xattr.c