fanotify: lift pidfd reporting restrictions
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest2 patches 3 repliesIn review
- v42 patches 14 repliesSuperseded
- v32 patches 3 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 1 patch | 4 replies | Superseded | |
| v1 | 1 patch | 2 replies | Superseded |
Changes in v5 from the cover letter
- Add a pidfs_register_pid_gfp() helper function to pass in custom flags.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | fanotify: report thread pidfds for FAN_REPORT_TIDfs/ | +8 | 0 replies | |
| 2/2 | fanotify: allow reporting pidfds for reaped tasksfs/ fs/ fs/ +1 more | +39 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Amir Goldstein | Jan Kara |
|---|---|---|
| Series | R-b | R-b R-b R-b R-b |
| 1/2 | R-b | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/2] fanotify: lift pidfd reporting restrictions
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 to the event-generating thread.
Additionally, this patch set allows fanotify to hand out pidfds for reaped tasks by registering the event pid with pidfs when pidfd reporting is requested and dropping the pid_has_task() check before the pidfd_prepare() call, as suggested by Christian.
Changes since v4:
- Add a pidfs_register_pid_gfp() helper function to pass in custom flags.
v4: https://lore.kernel.org/lkml/[email protected]/
AnonymeMeow (2):
fanotify: report thread pidfds for FAN_REPORT_TID
fanotify: allow reporting pidfds for reaped tasks
fs/notify/fanotify/fanotify.c | 17 +++++++++------ fs/notify/fanotify/fanotify_user.c | 33 +++++++----------------------- fs/pidfs.c | 10 +++++---- include/linux/pidfs.h | 18 +++++++++++++++- 4 files changed, 41 insertions(+), 37 deletions(-)
Signature · 1 line
2.54.0