diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-07-22 13:50:53 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-07-22 13:55:20 +0200 |
| commit | bb6bc13c53e211d9148ed2eab3e689c5cd5c75da (patch) | |
| tree | b1d8de2deb8001a3a10ab58d2db12ddd620a4fa9 /tools/perf/scripts/python/bin | |
| parent | a8e72879cd0d8422c0b47d6d3c1802274fe73b98 (diff) | |
pidfs: preserve thread pidfds reopened by file handle
PIDFD_THREAD shares O_EXCL. do_dentry_open() clears O_EXCL after
pidfs_export_open() validates the flags, so open_by_handle_at()
silently turns a thread pidfd into a process pidfd.
Restore PIDFD_THREAD on the opened file, matching pidfs_alloc_file().
Signed-off-by: Li Chen <me@linux.beauty>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260716052726.1032092-1-me@linux.beauty
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
