[PATCH v3 0/3] pidfds for non thread group leaders
From: Tycho Andersen
Date: Tue Jan 23 2024 - 10:41:53 EST
From: Tycho Andersen <tandersen@xxxxxxxxxxx>
Hi all,
Finally picking this back up. I looked for a location where we could put
the do_notify_pidfd() call so that we'd only need one for an
embarassingly long time, but couldn't find anything that worked. So, we
have a new call in a similar location in v1, just using the actual
helper. Perhaps this makes sense, since we're adding a new feature.
Hopefully all the tests even pass this time! I looked for a bit but
couldn't figure out why they don't exit(0) when something failed. I'll
keep looking at that.
Thoughts welcome,
Tycho
Tycho Andersen (3):
pidfd: allow pidfd_open() on non-thread-group leaders
selftests/pidfd: add non-thread-group leader tests
clone: allow CLONE_THREAD | CLONE_PIDFD together
include/linux/sched/signal.h | 1 +
kernel/exit.c | 11 +
kernel/fork.c | 7 +-
kernel/pid.c | 11 +-
kernel/signal.c | 2 +-
tools/testing/selftests/pidfd/.gitignore | 1 +
tools/testing/selftests/pidfd/Makefile | 3 +-
.../selftests/pidfd/pidfd_non_tgl_test.c | 600 ++++++++++++++++++
8 files changed, 619 insertions(+), 17 deletions(-)
create mode 100644 tools/testing/selftests/pidfd/pidfd_non_tgl_test.c
base-commit: 610347effc2ecb5ededf5037e82240b151f883ab
--
2.34.1