diff options
| author | 2026-10-24 00:13:34 -0400 | |
|---|---|---|
| committer | 2026-10-30 16:00:18 +0100 | |
| commit | 28767d4934f04492c8179ec470e967829b1dc895 (patch) | |
| tree | 76198f8341f7380aee32a74e90eefda54dad1cd3 /scripts/Makefile.thinlto | |
| parent | pidfs: do not report fields that do not fit into the caller's struct (diff) | |
selftests/pidfd: test that fields beyond the struct size are not reported
PIDFD_GET_INFO must not set the mask bit of a field that lies beyond
the struct size encoded in the ioctl command. Add a test that requests
the coredump fields and the supported mask with PIDFD_INFO_SIZE_VER0
over a full-size, poisoned struct, and checks that the mask names none
of those fields and that the poison behind the first 64 bytes is
intact.
Add fallback definitions of PIDFD_INFO_SIZE_VER0 to VER3 to pidfd.h,
like the other uapi constants there.
Signed-off-by: Nickolai Zeldovich <nickolai@csail.mit.edu>
Link: https://patch.msgid.link/20261024041334.831273-3-nickolai@csail.mit.edu
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
