android_kernel_motorola_sm6375/fs/overlayfs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jeff Layton 91ae08dc30 overlayfs: set ctime when setting mtime and atime
[ Upstream commit 03dbab3bba5f009d053635c729d1244f2c8bad38 ]

Nathan reported that he was seeing the new warning in
setattr_copy_mgtime pop when starting podman containers. Overlayfs is
trying to set the atime and mtime via notify_change without also
setting the ctime.

POSIX states that when the atime and mtime are updated via utimes() that
we must also update the ctime to the current time. The situation with
overlayfs copy-up is analogies, so add ATTR_CTIME to the bitmask.
notify_change will fill in the value.

Reported-by: Nathan Chancellor <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Tested-by: Nathan Chancellor <[email protected]>
Acked-by: Christian Brauner <[email protected]>
Acked-by: Amir Goldstein <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2023-10-25 11:53:23 +02:00
..
copy_up.c overlayfs: set ctime when setting mtime and atime 2023-10-25 11:53:23 +02:00
dir.c ovl: Use ovl mounter's fsuid and fsgid in ovl_link() 2023-01-18 11:41:43 +01:00
export.c ovl: drop WARN_ON() dentry is NULL in ovl_encode_fh() 2022-08-25 11:17:23 +02:00
file.c
inode.c
Kconfig
Makefile
namei.c new helper: lookup_positive_unlocked() 2023-09-23 10:59:40 +02:00
overlayfs.h ovl: fix warning in ovl_create_real() 2021-12-22 09:29:40 +01:00
ovl_entry.h ovl: check type and offset of struct vfsmount in ovl_entry 2023-08-30 16:27:09 +02:00
readdir.c
super.c ovl: fix warning in ovl_create_real() 2021-12-22 09:29:40 +01:00
util.c