diff options
| author | Nickolai Zeldovich <nickolai@csail.mit.edu> | 2026-10-24 00:13:34 -0400 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-10-30 16:00:18 +0100 |
| commit | 28767d4934f04492c8179ec470e967829b1dc895 (patch) | |
| tree | 76198f8341f7380aee32a74e90eefda54dad1cd3 /tools/lib/python/kdoc/python_version.py | |
| parent | 1534c37167488f2b85c74de048e1d6a4ba3848de (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 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
