diff options
| author | 2025-10-15 14:36:13 +0200 | |
|---|---|---|
| committer | 2026-02-10 11:39:30 +0100 | |
| commit | 1cf2e88e0651dbd5fb7f5651c32d617de759b855 (patch) | |
| tree | 66114646860fd4d9953811bfc9ca0e0b7ee2c44a /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | pidfs: implement ino allocation without the pidmap lock (diff) | |
Revert "pid: make __task_pid_nr_ns(ns => NULL) safe for zombie callers"
This reverts commit abdfd4948e45c51b19162cf8b3f5003f8f53c9b9.
The changelog in this commit explains why it is not easy to avoid ns == NULL
when the caller is exiting, but pid_vnr() is equally unsafe in this case.
However, commit 006568ab4c5c ("pid: Add a judgment for ns null in pid_nr_ns")
already added the ns != NULL check in pid_nr_ns(), so we can remove the same
check from __task_pid_nr_ns().
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Link: https://patch.msgid.link/20251015123613.GA9456@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
