Thread (27 messages) 27 messages, 8 authors, 2025-02-17

Re: [PATCH v7 5/6] selftests: pidfd: add tests for PIDFD_SELF_*

From: Shakeel Butt <shakeel.butt@linux.dev>
Date: 2025-02-05 05:27:59
Also in: linux-fsdevel, linux-kselftest, linux-mm, lkml

On Thu, Jan 30, 2025 at 08:40:30PM +0000, Lorenzo Stoakes wrote:
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 <redacted>
Reviewed-by: Shakeel Butt <shakeel.butt@linux.dev>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help