fanotify: Ensure consistent variable type for response
authorRichard Guy Briggs <rgb@redhat.com>
Fri, 3 Feb 2023 21:35:14 +0000 (16:35 -0500)
committerJan Kara <jack@suse.cz>
Tue, 7 Feb 2023 11:53:32 +0000 (12:53 +0100)
commit2e0a547164b1384a87fd3500a01297222b0971b0
treebe92ce10334aec5b29ac7df2c06e7dc6c9432aa9
parent05ecb680708a1dbe6554d6fc17e5d9a8a7cb5e6a
fanotify: Ensure consistent variable type for response

The user space API for the response variable is __u32. This patch makes
sure that the whole path through the kernel uses u32 so that there is
no sign extension or truncation of the user space response.

Suggested-by: Steve Grubb <sgrubb@redhat.com>
Link: https://lore.kernel.org/r/12617626.uLZWGnKmhe@x2
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Tested-by: Steve Grubb <sgrubb@redhat.com>
Acked-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <3778cb0b3501bc4e686ba7770b20eb9ab0506cf4.1675373475.git.rgb@redhat.com>
fs/notify/fanotify/fanotify.h
fs/notify/fanotify/fanotify_user.c
include/linux/audit.h
kernel/auditsc.c