Re: [PATCH v7 1/6] pidfd: add PIDFD_SELF* sentinels to refer to own thread/process

2025-02-17 Thread Christian Brauner
On Tue, Feb 11, 2025 at 03:45:20PM +, Lorenzo Stoakes wrote: > On Tue, Feb 11, 2025 at 04:24:07PM +0100, Michal Koutný wrote: > > On Thu, Jan 30, 2025 at 08:40:26PM +, Lorenzo Stoakes > > wrote: > > > > > > Signed-off-by: Lorenzo Stoakes > > > --- > > > include/uapi/linux/pidfd.h | 24

Re: [PATCH v7 1/6] pidfd: add PIDFD_SELF* sentinels to refer to own thread/process

2025-02-11 Thread Lorenzo Stoakes
On Tue, Feb 11, 2025 at 04:24:07PM +0100, Michal Koutný wrote: > On Thu, Jan 30, 2025 at 08:40:26PM +, Lorenzo Stoakes > wrote: > > > > Signed-off-by: Lorenzo Stoakes > > --- > > include/uapi/linux/pidfd.h | 24 + > > kernel/pid.c | 24 +++-- > > kernel/signal.c

Re: [PATCH v7 1/6] pidfd: add PIDFD_SELF* sentinels to refer to own thread/process

2025-02-11 Thread Michal Koutný
On Thu, Jan 30, 2025 at 08:40:26PM +, Lorenzo Stoakes wrote: > > Signed-off-by: Lorenzo Stoakes > --- > include/uapi/linux/pidfd.h | 24 + > kernel/pid.c | 24 +++-- > kernel/signal.c| 106 ++--- > 3 files changed, 107

Re: [PATCH v7 1/6] pidfd: add PIDFD_SELF* sentinels to refer to own thread/process

2025-02-04 Thread Shakeel Butt
On Thu, Jan 30, 2025 at 08:40:26PM +, Lorenzo Stoakes wrote: > It is useful to be able to utilise the pidfd mechanism to reference the > current thread or process (from a userland point of view - thread group > leader from the kernel's point of view). > > Therefore introduce PIDFD_SELF_THREAD