kernel-fxtec-pro1x/fs/cifs
Ronnie Sahlberg 80dc9c4266 cifs: handle -EINTR in cifs_setattr
[ Upstream commit c6cc4c5a72505a0ecefc9b413f16bec512f38078 ]

RHBZ: 1848178

Some calls that set attributes, like utimensat(), are not supposed to return
-EINTR and thus do not have handlers for this in glibc which causes us
to leak -EINTR to the applications which are also unprepared to handle it.

For example tar will break if utimensat() return -EINTR and abort unpacking
the archive. Other applications may break too.

To handle this we add checks, and retry, for -EINTR in cifs_setattr()

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-11-05 11:08:44 +01:00
..
asn1.c cifs: remove bogus debug code 2020-10-29 09:54:59 +01:00
cache.c
cifs_debug.c cifs: Don't display RDMA transport on reconnect 2019-12-21 10:57:33 +01:00
cifs_debug.h
cifs_dfs_ref.c cifs: use correct format characters 2019-04-05 22:32:59 +02:00
cifs_fs_sb.h cifs: Properly handle auto disabling of serverino option 2019-09-16 08:22:17 +02:00
cifs_ioctl.h
cifs_spnego.c
cifs_spnego.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c cifs: Fix mode output in debugging statements 2020-03-05 16:42:15 +01:00
cifsacl.h
cifsencrypt.c
cifsfs.c smb3: allow disabling requesting leases 2019-10-05 13:10:08 +02:00
cifsfs.h
cifsglob.h CIFS: Properly process SMB3 lease breaks 2020-10-01 13:14:29 +02:00
cifspdu.h
cifsproto.h cifs: Fix cifsInodeInfo lock_sem deadlock when reconnect occurs 2019-11-10 11:27:34 +01:00
cifssmb.c cifs: fix leaked reference on requeued write 2020-05-20 08:18:49 +02:00
connect.c SMB3: Honor lease disabling for multiuser mounts 2020-07-09 09:37:12 +02:00
dir.c cifs_atomic_open(): fix double-put on late allocation failure 2020-03-18 07:14:21 +01:00
dns_resolve.c
dns_resolve.h
export.c
file.c cifs: Fix double add page to memcg when cifs_readpages 2020-10-01 13:14:48 +02:00
fscache.c
fscache.h
inode.c cifs: handle -EINTR in cifs_setattr 2020-11-05 11:08:44 +01:00
ioctl.c
Kconfig
link.c
Makefile
misc.c CIFS: Properly process SMB3 lease breaks 2020-10-01 13:14:29 +02:00
netmisc.c fs: cifs: mute -Wunused-const-variable message 2019-11-06 13:05:51 +01:00
nterr.c
nterr.h
ntlmssp.h
readdir.c
rfc1002pdu.h
sess.c
smb1ops.c CIFS: Properly process SMB3 lease breaks 2020-10-01 13:14:29 +02:00
smb2file.c cifs: Adjust indentation in smb2_open_file 2020-01-17 19:47:01 +01:00
smb2glob.h
smb2inode.c
smb2maperror.c SMB3: retry on STATUS_INSUFFICIENT_RESOURCES instead of failing write 2019-06-25 11:36:01 +08:00
smb2misc.c CIFS: Properly process SMB3 lease breaks 2020-10-01 13:14:29 +02:00
smb2ops.c cifs: Return the error from crypt_message when enc/dec key not found. 2020-10-29 09:54:59 +01:00
smb2pdu.c smb3: warn on confusing error scenario with sec=krb5 2020-08-21 11:05:28 +02:00
smb2pdu.h CIFS: Properly process SMB3 lease breaks 2020-10-01 13:14:29 +02:00
smb2proto.h CIFS: Close open handle after interrupted close 2019-12-21 10:57:35 +01:00
smb2status.h
smb2transport.c
smbdirect.c cifs: smbd: Return -EINVAL when the number of iovs exceeds SMBDIRECT_MAX_SGE 2019-12-21 10:57:32 +01:00
smbdirect.h cifs: smbd: take an array of reqeusts when sending upper layer data 2019-09-16 08:22:13 +02:00
smbencrypt.c
smberr.h
smbfsctl.h
trace.c
trace.h
transport.c cifs: Allocate encryption header through kmalloc 2020-04-23 10:30:19 +02:00
winucase.c
xattr.c CIFS: fix max ea value size 2019-10-05 13:10:12 +02:00