android_kernel_samsung_a7y1.../fs/cifs
Ronnie Sahlberg 3bc27761f7 cifs: don't leak -EAGAIN for stat() during reconnect
commit fc513fac56e1b626ae48a74d7551d9c35c50129e upstream.

If from cifs_revalidate_dentry_attr() the SMB2/QUERY_INFO call fails with an
error, such as STATUS_SESSION_EXPIRED, causing the session to be reconnected
it is possible we will leak -EAGAIN back to the application even for
system calls such as stat() where this is not a valid error.

Fix this by re-trying the operation from within cifs_revalidate_dentry_attr()
if cifs_get_inode_info*() returns -EAGAIN.

This fixes stat() and possibly also other system calls that uses
cifs_revalidate_dentry*().

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 14:10:10 +02:00
..
asn1.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cache.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_debug.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_debug.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_dfs_ref.c cifs: use correct format characters 2020-04-06 14:50:13 +02:00
cifs_fs_sb.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_ioctl.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_spnego.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_spnego.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_unicode.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_unicode.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_uniupr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifsacl.c cifs: Fix mode output in debugging statements 2020-04-07 14:04:20 +02:00
cifsacl.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifsencrypt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifsfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifsfs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifsglob.h cifs: Fix cifsInodeInfo lock_sem deadlock when reconnect occurs 2020-04-07 09:29:13 +02:00
cifspdu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifsproto.h cifs: Fix cifsInodeInfo lock_sem deadlock when reconnect occurs 2020-04-07 09:29:13 +02:00
cifssmb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
connect.c cifs: Fix mode output in debugging statements 2020-04-07 14:04:20 +02:00
dir.c CIFS: Force reval dentry if LOOKUP_REVAL flag is set 2020-04-07 08:09:52 +02:00
dns_resolve.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dns_resolve.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
export.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
file.c CIFS: Respect O_SYNC and O_DIRECT flags during reconnect 2020-04-07 13:12:47 +02:00
fscache.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fscache.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
inode.c cifs: don't leak -EAGAIN for stat() during reconnect 2020-04-07 14:10:10 +02:00
ioctl.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
link.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
misc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
netmisc.c fs: cifs: mute -Wunused-const-variable message 2020-04-07 09:27:39 +02:00
nterr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nterr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ntlmssp.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
readdir.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rfc1002pdu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sess.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb1ops.c CIFS: avoid using MID 0xFFFF 2020-04-07 09:26:58 +02:00
smb2file.c cifs: Adjust indentation in smb2_open_file 2020-04-07 13:36:50 +02:00
smb2glob.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb2inode.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb2maperror.c SMB3: retry on STATUS_INSUFFICIENT_RESOURCES instead of failing write 2020-04-06 19:16:56 +02:00
smb2misc.c CIFS: Fix SMB2 oplock break processing 2020-04-07 12:45:47 +02:00
smb2ops.c CIFS: Fix oplock handling for SMB 2.1+ protocols 2020-04-07 07:41:09 +02:00
smb2pdu.c cifs: fail i/o on soft mounts if sessionsetup errors out 2020-04-07 13:51:35 +02:00
smb2pdu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb2proto.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb2status.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb2transport.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smbencrypt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smberr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smbfsctl.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
transport.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
winucase.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xattr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30