summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-05-18 10:32:11 +0200
committerChristian Brauner <brauner@kernel.org>2026-05-19 08:57:47 +0200
commit62c4d31d78294bd61cf3403626b789e854357177 (patch)
tree0ce0b6933db3ecbad6d09ade245dd81426ad6173 /scripts/objdiff
parent1711b6ed6953cee5940ca4c3a6e77f1b3798cee2 (diff)
pidfd: refuse access to tasks that have started exiting harder
The recent ptrace fix closed a hole where someone could rely on task->mm becoming NULL during do_exit() to bypass dumpability checks. This api here leans on on the very same check and so inherits the fix. But there is no good reason to let it succeed at all once the target has entered do_exit(). PF_EXITING is set by exit_signals() at the very top of do_exit(), before exit_mm() and exit_files() run. Once we observe it, the task is committed to dying and exit_files() will release the fdtable shortly. Fixes: 8649c322f75c ("pid: Implement pidfd_getfd syscall") Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260518-obgleich-petersilie-2d77ccccf9b9@brauner Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions