mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] fanotify: lift pidfd reporting restrictions
@ 2026-05-30  1:37 AnonymeMeow
  2026-05-30  1:37 ` [PATCH v3 1/2] fanotify: report thread pidfds for FAN_REPORT_TID AnonymeMeow
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: AnonymeMeow @ 2026-05-30  1:37 UTC (permalink / raw)
  To: amir73il; +Cc: brauner, jack, repnop, linux-fsdevel, linux-kernel, AnonymeMeow

The pidfd API now supports pidfds for tasks that are not thread group leaders,
but fanotify has not caught up yet. This patch set lifts that restriction and
allows fanotify to report pidfds referring the event-generating thread.

Additionally, this patch set drops the pid_has_task() check before the
pidfd_prepare() call, allowing fanotify to hand out pidfds for reaped tasks,
as suggested by Christian.

Link: https://lore.kernel.org/lkml/20260528-schmuckvoll-heilen-garen-be77b4208671@brauner/

changes since v2:
 - Split the two independent changes into separate patches.

v2: https://lore.kernel.org/lkml/20260529020035.17477-1-anonymemeow@gmail.com/

AnonymeMeow (2):
  fanotify: report thread pidfds for FAN_REPORT_TID
  fanotify: allow reporting pidfds for reaped tasks

 fs/notify/fanotify/fanotify_user.c | 33 +++++++-----------------------
 1 file changed, 7 insertions(+), 26 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-06-10  7:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-30  1:37 [PATCH v3 0/2] fanotify: lift pidfd reporting restrictions AnonymeMeow
2026-05-30  1:37 ` [PATCH v3 1/2] fanotify: report thread pidfds for FAN_REPORT_TID AnonymeMeow
2026-05-30 13:51   ` Amir Goldstein
2026-05-30  1:37 ` [PATCH v3 2/2] fanotify: allow reporting pidfds for reaped tasks AnonymeMeow
2026-05-30 13:51   ` Amir Goldstein
2026-05-30 10:51 ` [RFC][PATCH] fanotify: register event pid for pidfd reporting AnonymeMeow
2026-06-01 15:24   ` Jan Kara
2026-06-02 13:50     ` Christian Brauner
2026-06-08  9:27       ` Jan Kara
2026-06-08 12:30         ` Jan Kara
2026-06-10  7:33           ` Christian Brauner
2026-06-08 10:53 ` [PATCH v3 0/2] fanotify: lift pidfd reporting restrictions Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®