linux-stable/fs/overlayfs
Vasiliy Kovalev 5f86e79c0b ovl: Filter invalid inodes with missing lookup function
commit c8b359dddb upstream.

Add a check to the ovl_dentry_weird() function to prevent the
processing of directory inodes that lack the lookup function.
This is important because such inodes can cause errors in overlayfs
when passed to the lowerstack.

Reported-by: syzbot+a8c9d476508bd14a90e5@syzkaller.appspotmail.com
Link: https://syzkaller.appspot.com/bug?extid=a8c9d476508bd14a90e5
Suggested-by: Miklos Szeredi <miklos@szeredi.hu>
Link: https://lore.kernel.org/linux-unionfs/CAJfpegvx-oS9XGuwpJx=Xe28_jzWx5eRo1y900_ZzWY+=gGzUg@mail.gmail.com/
Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-14 19:47:37 +01:00
..
copy_up.c overlayfs: set ctime when setting mtime and atime 2023-10-25 11:54:23 +02:00
dir.c ovl: update of dentry revalidate flags after copy up 2023-07-27 08:43:55 +02:00
export.c ovl: update of dentry revalidate flags after copy up 2023-07-27 08:43:55 +02:00
file.c ovl: do not fail because of O_NOATIME 2024-09-04 13:17:45 +02:00
inode.c ovl: perform vfs_getxattr() with mounter creds 2021-02-17 11:02:22 +01: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
namei.c ovl: update of dentry revalidate flags after copy up 2023-07-27 08:43:55 +02:00
overlayfs.h namei: introduce struct renamedata 2024-06-21 14:52:59 +02:00
ovl_entry.h ovl: check type and offset of struct vfsmount in ovl_entry 2023-08-26 15:26:44 +02:00
readdir.c ovl: invalidate readdir cache on changes to dir with origin 2021-05-14 09:50:35 +02:00
super.c ima: detect changes to the backing overlay file 2023-11-28 16:54:57 +00:00
util.c ovl: Filter invalid inodes with missing lookup function 2024-12-14 19:47:37 +01:00