linux/fs/overlayfs
Vasiliy Kovalev c8b359dddb ovl: Filter invalid inodes with missing lookup function
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>
2024-11-20 10:23:04 +01:00
..
copy_up.c ovl: use wrapper ovl_revert_creds() 2024-11-11 10:45:04 +01:00
dir.c ovl: allocate a container struct ovl_file for ovl private context 2024-11-15 08:56:48 +01:00
export.c ovl: fix encoding fid for lower only root 2024-06-14 10:30:40 +02:00
file.c ovl: convert ovl_real_fdget() callers to ovl_real_file() 2024-11-15 08:56:49 +01:00
inode.c ovl: use wrapper ovl_revert_creds() 2024-11-11 10:45:04 +01:00
Kconfig fs: prepare for stackable filesystems backing file helpers 2023-12-23 16:35:08 +02:00
Makefile ovl: Move xattr support to new xattrs.c file 2023-10-31 00:12:59 +02:00
namei.c ovl: use wrapper ovl_revert_creds() 2024-11-11 10:45:04 +01:00
overlayfs.h ovl: allocate a container struct ovl_file for ovl private context 2024-11-15 08:56:48 +01:00
ovl_entry.h ovl: mark xwhiteouts directory with overlay.opaque='x' 2024-01-23 12:39:48 +02:00
params.c ovl: fail if trusted xattrs are needed but caller lacks permission 2024-09-08 15:36:59 +02:00
params.h ovl: store and show the user provided lowerdir mount option 2023-10-31 00:13:02 +02:00
readdir.c ovl: use wrapper ovl_revert_creds() 2024-11-11 10:45:04 +01:00
super.c ovl: don't set the superblock's errseq_t manually 2024-08-29 11:35:09 +02:00
util.c ovl: Filter invalid inodes with missing lookup function 2024-11-20 10:23:04 +01:00
xattrs.c ovl: use wrapper ovl_revert_creds() 2024-11-11 10:45:04 +01:00