Files
linux-stable-mirror/fs
Amir Goldstein de07e11831 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:13:51 +02:00
..
2025-06-19 15:32:36 +02:00
2025-07-10 16:05:08 +02:00
2025-08-01 09:48:45 +01:00
2025-08-01 09:48:46 +01:00
2024-10-17 00:28:06 -07:00
2025-08-15 12:13:32 +02:00
2025-07-10 16:05:08 +02:00
2025-01-23 17:22:55 +01:00
2025-03-22 12:54:15 -07:00
2024-12-05 14:02:47 +01:00
2025-07-10 16:05:08 +02:00
2025-01-17 13:40:50 +01:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:18:43 -07:00
2025-06-27 11:11:36 +01:00