This is a note to let you know that I've just added the patch titled smb3: fix caching of ctime on setxattr to the 6.5-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: smb3-fix-caching-of-ctime-on-setxattr.patch and it can be found in the queue-6.5 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 5923d6686a100c2b4cabd4c2ca9d5a12579c7614 Mon Sep 17 00:00:00 2001 From: Steve French <stfrench@xxxxxxxxxxxxx> Date: Tue, 7 Nov 2023 21:38:13 -0600 Subject: smb3: fix caching of ctime on setxattr From: Steve French <stfrench@xxxxxxxxxxxxx> commit 5923d6686a100c2b4cabd4c2ca9d5a12579c7614 upstream. Fixes xfstest generic/728 which had been failing due to incorrect ctime after setxattr and removexattr Update ctime on successful set of xattr Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Steve French <stfrench@xxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/smb/client/xattr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/fs/smb/client/xattr.c +++ b/fs/smb/client/xattr.c @@ -150,10 +150,13 @@ static int cifs_xattr_set(const struct x if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_XATTR) goto out; - if (pTcon->ses->server->ops->set_EA) + if (pTcon->ses->server->ops->set_EA) { rc = pTcon->ses->server->ops->set_EA(xid, pTcon, full_path, name, value, (__u16)size, cifs_sb->local_nls, cifs_sb); + if (rc == 0) + inode_set_ctime_current(inode); + } break; case XATTR_CIFS_ACL: Patches currently in stable-queue which might be from stfrench@xxxxxxxxxxxxx are queue-6.5/smb3-fix-caching-of-ctime-on-setxattr.patch queue-6.5/cifs-spnego-add-in-host_key_len.patch queue-6.5/ksmbd-handle-malformed-smb1-message.patch queue-6.5/cifs-reconnect-helper-should-set-reconnect-for-the-right-channel.patch queue-6.5/smb3-fix-touch-h-of-symlink.patch queue-6.5/ksmbd-fix-recursive-locking-in-vfs-helpers.patch queue-6.5/cifs-do-not-reset-chan_max-if-multichannel-is-not-supported-at-mount.patch queue-6.5/smb3-fix-creating-fifos-when-mounting-with-sfu-mount-option.patch queue-6.5/cifs-fix-check-of-rc-in-function-generate_smb3signin.patch queue-6.5/smb3-allow-dumping-session-and-tcon-id-to-improve-stats-analysis-and-debugging.patch queue-6.5/smb-client-fix-use-after-free-bug-in-cifs_debug_data_proc_show.patch queue-6.5/cifs-force-interface-update-before-a-fresh-session-setup.patch queue-6.5/smb-client-fix-potential-deadlock-when-releasing-mids.patch queue-6.5/smb-client-fix-use-after-free-in-smb2_query_info_compound.patch queue-6.5/ksmbd-fix-slab-out-of-bounds-write-in-smb_inherit_dacl.patch queue-6.5/cifs-fix-encryption-of-cleared-but-unset-rq_iter-data-buffers.patch