linux/fs/smb/client
Zizhi Wo 01fe654f78 fs: cifs: Fix atime update check
Commit 9b9c5bea0b ("cifs: do not return atime less than mtime") indicates
that in cifs, if atime is less than mtime, some apps will break.
Therefore, it introduce a function to compare this two variables in two
places where atime is updated. If atime is less than mtime, update it to
mtime.

However, the patch was handled incorrectly, resulting in atime and mtime
being exactly equal. A previous commit 69738cfdfa ("fs: cifs: Fix atime
update check vs mtime") fixed one place and forgot to fix another. Fix it.

Fixes: 9b9c5bea0b ("cifs: do not return atime less than mtime")
Cc: stable@vger.kernel.org
Signed-off-by: Zizhi Wo <wozizhi@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
2023-12-19 10:33:57 -06:00
..
asn1.c
cached_dir.c smb: client: fix potential OOBs in smb2_parse_contexts() 2023-12-11 12:30:39 -06: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 OOB in cifs_dump_detail() 2023-12-17 19:03:08 -06: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-10 02:00:30 -06:00
cifs_spnego_negtokeninit.asn1
cifs_spnego.c cifs: spnego: add ';' in HOST_KEY_LEN 2023-11-13 16:21:34 -06:00
cifs_spnego.h
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
cifsfs.c cifs: Fix non-availability of dedup breaking generic/304 2023-12-05 21:12:04 -06:00
cifsfs.h cifs: update internal module version number for cifs.ko 2023-11-10 09:33:26 -06:00
cifsglob.h smb: client: fix OOB in cifsd when receiving compounded resps 2023-12-17 19:00:12 -06:00
cifspdu.h smb: client, common: fix fortify warnings 2023-11-30 11:17:03 -06:00
cifsproto.h smb: client: introduce cifs_sfu_make_node() 2023-11-23 11:46:05 -06:00
cifsroot.c
cifssmb.c smb: client, common: fix fortify warnings 2023-11-30 11:17:03 -06:00
connect.c smb: client: fix OOB in cifsd when receiving compounded resps 2023-12-17 19:00:12 -06: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
dfs.c smb: client: fix mount when dns_resolver key is not available 2023-11-09 12:59:36 -06:00
dfs.h smb: client: get rid of dfs code dep in namespace.c 2023-08-20 16:05:50 -05:00
dir.c smb: client: get rid of dfs naming in automount code 2023-08-20 16:05:50 -05:00
dns_resolve.c
dns_resolve.h
export.c exportfs: make ->encode_fh() a mandatory method for NFS export 2023-10-28 16:15:15 +02:00
file.c fs: cifs: Fix atime update check 2023-12-19 10:33:57 -06:00
fs_context.c fs/smb/client: Reset password pointer to NULL 2023-09-28 14:49:51 -05:00
fs_context.h smb: client: fix mount when dns_resolver key is not available 2023-11-09 12:59:36 -06:00
fscache.c smb: propagate error code of extract_sharename() 2023-08-30 23:38:49 -05:00
fscache.h client: convert to new timestamp accessors 2023-10-18 14:08:27 +02:00
inode.c smb: client: report correct st_size for SMB and NFS symlinks 2023-11-28 20:41:41 -06:00
ioctl.c Missing field not being returned in ioctl CIFS_IOC_GET_MNT_INFO 2023-11-10 09:32:04 -06:00
Kconfig fs/smb/client: Use common code in client 2023-08-30 08:55:52 -05:00
link.c smb: use crypto_shash_digest() in symlink_hash() 2023-10-31 12:38:26 -05:00
Makefile smb: client: get rid of dfs code dep in namespace.c 2023-08-20 16:05:50 -05:00
misc.c smb: client: fix OOB in smbCalcSize() 2023-12-17 19:02:59 -06:00
namespace.c smb: client: fix mount when dns_resolver key is not available 2023-11-09 12:59:36 -06:00
netlink.c
netlink.h
netmisc.c
nterr.c
nterr.h
ntlmssp.h cifs: Add client version details to NTLM authenticate message 2023-10-22 19:03:42 -05:00
readdir.c smb: client: set correct file type from NFS reparse points 2023-11-23 11:44:55 -06:00
rfc1002pdu.h
sess.c cifs: fix use after free for iface while disabling secondary channels 2023-11-23 11:42:55 -06:00
smb1ops.c smb: client: introduce cifs_sfu_make_node() 2023-11-23 11:46:05 -06:00
smb2file.c
smb2glob.h
smb2inode.c smb: client: set correct file type from NFS reparse points 2023-11-23 11:44:55 -06:00
smb2maperror.c smb3: remove duplicate error mapping 2023-09-20 16:04:51 -05:00
smb2misc.c smb: client: fix potential OOB in smb2_dump_detail() 2023-12-19 10:33:39 -06:00
smb2ops.c smb: client: fix potential OOB in smb2_dump_detail() 2023-12-19 10:33:39 -06:00
smb2pdu.c smb: client: fix OOB in SMB2_query_info_init() 2023-12-17 19:00:14 -06:00
smb2pdu.h smb: client, common: fix fortify warnings 2023-11-30 11:17:03 -06:00
smb2proto.h smb: client: fix potential OOBs in smb2_parse_contexts() 2023-12-11 12:30:39 -06:00
smb2status.h
smb2transport.c cifs: fix check of rc in function generate_smb3signingkey 2023-11-13 16:22:30 -06: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 cifs: handle when server stops supporting multichannel 2023-11-10 09:33:19 -06:00
unc.c
winucase.c
xattr.c smb3: fix caching of ctime on setxattr 2023-11-09 10:25:58 -06:00