[GIT PULL 05/12 for v6.18] pidfs

From: Christian Brauner

Date: Fri Sep 26 2025 - 10:19:12 EST


Hey Linus,

/* Summary */
This just contains a few changes to pid_nr_ns() to make it more robust
and cleanups or improves a few users that ab- or misuse it currently.

/* Testing */

gcc (Debian 14.2.0-19) 14.2.0
Debian clang version 19.1.7 (3+b1)

No build failures or warnings were observed.

/* Conflicts */

Merge conflicts with mainline
=============================

No known conflicts.

Merge conflicts with other trees
================================

No known conflicts.

The following changes since commit 8f5ae30d69d7543eee0d70083daf4de8fe15d585:

Linux 6.17-rc1 (2025-08-10 19:41:16 +0300)

are available in the Git repository at:

git@xxxxxxxxxxxxxxxxxxx:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-6.18-rc1.pidfs

for you to fetch changes up to da664c6db895f70c2be8c3dd371c273b6f8b920f:

Merge patch series "Improve pid_nr_ns()" (2025-08-19 13:38:26 +0200)

Please consider pulling these changes from the signed vfs-6.18-rc1.pidfs tag.

Thanks!
Christian

----------------------------------------------------------------
vfs-6.18-rc1.pidfs

----------------------------------------------------------------
Christian Brauner (1):
Merge patch series "Improve pid_nr_ns()"

Oleg Nesterov (3):
pid: make __task_pid_nr_ns(ns => NULL) safe for zombie callers
pid: change bacct_add_tsk() to use task_ppid_nr_ns()
pid: change task_state() to use task_ppid_nr_ns()

gaoxiang17 (1):
pid: Add a judgment for ns null in pid_nr_ns

fs/proc/array.c | 4 +---
kernel/pid.c | 5 +++--
kernel/tsacct.c | 3 +--
3 files changed, 5 insertions(+), 7 deletions(-)