diff options
author | 2025-01-30 20:40:30 +0000 | |
---|---|---|
committer | 2025-02-05 15:14:55 +0100 | |
commit | 2bbf47f2d396ee32068042a99ecf4da955ce88ec (patch) | |
tree | 69986eb85dd05998de324a40d7693a2ee9074b0d /kernel/fork.c | |
parent | selftests/pidfd: add new PIDFD_SELF* defines (diff) | |
download | wireguard-linux-2bbf47f2d396ee32068042a99ecf4da955ce88ec.tar.xz wireguard-linux-2bbf47f2d396ee32068042a99ecf4da955ce88ec.zip |
selftests/pidfd: add tests for PIDFD_SELF_*
Add tests to assert that PIDFD_SELF* correctly refers to the current
thread and process.
We explicitly test pidfd_send_signal(), however We defer testing of
mm-specific functionality which uses pidfd, namely process_madvise() and
process_mrelease() to mm testing (though note the latter can not be
sensibly tested as it would require the testing process to be dying).
We also correct the pidfd_open_test.c fields which refer to .request_mask
whereas the UAPI header refers to .mask, which otherwise break the import
of the UAPI header.
Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Link: https://lore.kernel.org/r/7ab0e48b26ba53abf7b703df2dd11a2e99b8efb2.1738268370.git.lorenzo.stoakes@oracle.com
Reviewed-by: Shakeel Butt <shakeel.butt@linux.dev>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'kernel/fork.c')
0 files changed, 0 insertions, 0 deletions