linux-yocto/fs/notify
Amir Goldstein 45338af03f fanotify: sanitize handle_type values when reporting fid
[ Upstream commit 8631e01c2c ]

Unlike file_handle, type and len of struct fanotify_fh are u8.
Traditionally, filesystem return handle_type < 0xff, but there
is no enforecement for that in vfs.

Add a sanity check in fanotify to avoid truncating handle_type
if its value is > 0xff.

Fixes: 7cdafe6cc4 ("exportfs: check for error return value from exportfs_encode_*()")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20250627104835.184495-1-amir73il@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-15 12:08:52 +02:00
..
dnotify dnotify: Pass argument of fcntl_dirnotify as int 2023-07-10 14:36:12 +02:00
fanotify fanotify: sanitize handle_type values when reporting fid 2025-08-15 12:08:52 +02:00
inotify inotify: Avoid reporting event with invalid wd 2023-04-25 12:36:55 +02:00
fdinfo.c fs: relax assertions on failure to encode file handles 2025-01-23 17:21:19 +01:00
fdinfo.h
fsnotify.c fsnotify: fix sending inotify event with unexpected filename 2024-12-09 10:32:44 +01:00
fsnotify.h fsnotify: clear PARENT_WATCHED flags lazily 2024-09-08 07:54:44 +02:00
group.c fsnotify: create helpers for group mark_mutex lock 2022-04-25 14:37:22 +02:00
Kconfig fs/notify: Remove "select SRCU" 2023-02-02 16:26:06 -08:00
Makefile
mark.c fsnotify: clear PARENT_WATCHED flags lazily 2024-09-08 07:54:44 +02:00
notification.c fsnotify: Pass group argument to free_event 2021-10-27 12:34:18 +02:00