[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240123153452.170866-1-tycho@tycho.pizza>
Date: Tue, 23 Jan 2024 08:34:49 -0700
From: Tycho Andersen <tycho@...ho.pizza>
To: Christian Brauner <brauner@...nel.org>
Cc: Oleg Nesterov <oleg@...hat.com>,
	linux-kernel@...r.kernel.org,
	linux-api@...r.kernel.org,
	Tycho Andersen <tandersen@...flix.com>
Subject: [PATCH v3 0/3] pidfds for non thread group leaders
From: Tycho Andersen <tandersen@...flix.com>
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
Powered by blists - more mailing lists
 
