Thread (20 messages) 20 messages, 4 authors, 2023-01-17

Re: [PATCH v5 1/3] fanotify: Ensure consistent variable type for response

From: Paul Moore <paul@paul-moore.com>
Date: 2022-12-20 23:31:14
Also in: linux-fsdevel, lkml

On Mon, Dec 12, 2022 at 9:06 AM Richard Guy Briggs [off-list ref] wrote:
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 <redacted>
Link: https://lore.kernel.org/r/12617626.uLZWGnKmhe@x2 (local)
Signed-off-by: Richard Guy Briggs <redacted>
---
 fs/notify/fanotify/fanotify.h      | 2 +-
 fs/notify/fanotify/fanotify_user.c | 6 +++---
 include/linux/audit.h              | 6 +++---
 kernel/auditsc.c                   | 2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)
Acked-by: Paul Moore <paul@paul-moore.com> (audit)

--
paul-moore.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help