Thread (9 messages) 9 messages, 2 authors, 11d ago

Re: [PATCH v3 3/4] pidfd: Use scoped cleanup for task access

flat view

From: sashiko-bot@kernel.org
Date: 2026-10-10 10:30:49

From: Chen Linxuan <redacted>

Split namespace acquisition from namespace fd creation and represent a
privileged target task as a scoped class that owns both the task
reference and exec_update_lock. Use the class for namespace lookups so
ptrace access checks and task state reads remain tied to the same exec
critical section, while open_namespace() stays outside the lock.

Carry the pid namespace visibility check into the helper so that all
users of the class enforce it.

Assisted-by: LLM
Signed-off-by: Chen Linxuan <redacted>
Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261010-pidfd-get-paths-v3-0-f245440b2b30@black-desk.cn?part=3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help