linux-stable/fs/notify/fanotify
Nikita Kiryushin e659522446 fanotify: remove unneeded sub-zero check for unsigned value
Unsigned size_t len in copy_fid_info_to_user is checked
for negative value. This check is redundant as it is
always false.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 5e469c830f ("fanotify: copy event fid info to user")
Signed-off-by: Nikita Kiryushin <kiryushin@ancud.ru>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <d296ff1c-dcf7-4813-994b-3c4369debb7d@ancud.ru>
2024-03-25 20:16:16 +01:00
..
fanotify_user.c fanotify: remove unneeded sub-zero check for unsigned value 2024-03-25 20:16:16 +01:00
fanotify.c fanotify: allow freeze when waiting response for permission events 2024-03-07 12:59:51 +01:00
fanotify.h fanotify: allow "weak" fsid when watching a single filesystem 2023-12-01 10:55:21 +01:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00