diff options
| author | Amir Goldstein <[email protected]> | 2025-06-27 10:48:35 +0000 |
|---|---|---|
| committer | Jan Kara <[email protected]> | 2025-06-27 17:17:26 +0000 |
| commit | 8631e01c2c5d1fe6705bcc0d733a0b7a17d3daac (patch) | |
| tree | 7848f3dcbd213abd23a7c076a7dc528a0432d256 /fs/file_table.c | |
| parent | Merge tag 'block-6.16-20250626' of git://git.kernel.dk/linux (diff) | |
| download | kernel-8631e01c2c5d1fe6705bcc0d733a0b7a17d3daac.tar.gz kernel-8631e01c2c5d1fe6705bcc0d733a0b7a17d3daac.zip | |
fanotify: sanitize handle_type values when reporting fid
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: 7cdafe6cc4a6 ("exportfs: check for error return value from exportfs_encode_*()")
Signed-off-by: Amir Goldstein <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'fs/file_table.c')
0 files changed, 0 insertions, 0 deletions
