1
0
Fork 0
freescale-linux-fslc/fs/overlayfs
Amir Goldstein 0f8528c78f ovl: invalidate readdir cache on changes to dir with origin
[ Upstream commit 65cd913ec9 ]

The test in ovl_dentry_version_inc() was out-dated and did not include
the case where readdir cache is used on a non-merge dir that has origin
xattr, indicating that it may contain leftover whiteouts.

To make the code more robust, use the same helper ovl_dir_is_real()
to determine if readdir cache should be used and if readdir cache should
be invalidated.

Fixes: b79e05aaa1 ("ovl: no direct iteration for dir with origin xattr")
Link: https://lore.kernel.org/linux-unionfs/CAOQ4uxht70nODhNHNwGFMSqDyOKLXOKrY0H6g849os4BQ7cokA@mail.gmail.com/
Cc: Chris Murphy <lists@colorremedies.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-14 09:50:35 +02:00
..
Kconfig docs: fix broken references to text files 2020-04-20 15:35:59 -06:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
copy_up.c ovl: fix missing revert_creds() on error path 2021-05-14 09:50:05 +02:00
dir.c ovl: fix dentry leak in ovl_get_redirect 2021-02-10 09:29:15 +01:00
export.c ovl: pass ovl_fs down to functions accessing private xattrs 2020-09-02 10:58:49 +02:00
file.c ovl: implement volatile-specific fsync error behaviour 2021-02-10 09:29:16 +01:00
inode.c ovl: perform vfs_getxattr() with mounter creds 2021-02-17 11:02:22 +01:00
namei.c ovl: fix leaked dentry 2021-05-07 11:04:32 +02:00
overlayfs.h ovl: invalidate readdir cache on changes to dir with origin 2021-05-14 09:50:35 +02:00
ovl_entry.h ovl: implement volatile-specific fsync error behaviour 2021-02-10 09:29:16 +01:00
readdir.c ovl: invalidate readdir cache on changes to dir with origin 2021-05-14 09:50:35 +02:00
super.c ovl: allow upperdir inside lowerdir 2021-05-07 11:04:33 +02:00
util.c ovl: invalidate readdir cache on changes to dir with origin 2021-05-14 09:50:35 +02:00