linux-yocto/fs/notify
Amir Goldstein 1f467f47a6 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 16:39:02 +02:00
..
dnotify fix a leak in fcntl_dirnotify() 2025-07-14 10:13:31 +02:00
fanotify fanotify: sanitize handle_type values when reporting fid 2025-08-15 16:39:02 +02:00
inotify treewide: const qualify ctl_tables where applicable 2025-01-28 13:48:37 +01:00
fdinfo.c fanotify: notify on mount attach and detach 2025-02-05 17:21:07 +01:00
fdinfo.h
fsnotify.c vfs-6.15-rc1.mount 2025-03-24 09:34:10 -07:00
fsnotify.h fsnotify: add mount notification infrastructure 2025-02-04 11:14:47 +01:00
group.c inotify: Fix possible deadlock in fsnotify_destroy_mark 2024-10-02 15:14:29 +02:00
Kconfig fs/notify: Remove "select SRCU" 2023-02-02 16:26:06 -08:00
Makefile
mark.c fsnotify: add mount notification infrastructure 2025-02-04 11:14:47 +01:00
notification.c