linux/tools/testing/selftests/proc
Florian Weimer 0658a0961b procfs: do not list TID 0 in /proc/<pid>/task
If a task exits concurrently, task_pid_nr_ns may return 0.

[akpm@linux-foundation.org: coding style tweaks]
[adobriyan@gmail.com: test that /proc/*/task doesn't contain "0"]
  Link: https://lkml.kernel.org/r/YV88AnVzHxPafQ9o@localhost.localdomain

Link: https://lkml.kernel.org/r/8735pn5dx7.fsf@oldenburg.str.redhat.com
Signed-off-by: Florian Weimer <fweimer@redhat.com>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Reviewed-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-11-09 10:02:48 -08:00
..
.gitignore procfs: do not list TID 0 in /proc/<pid>/task 2021-11-09 10:02:48 -08:00
config
fd-001-lookup.c
fd-002-posix-eq.c
fd-003-kthread.c
Makefile procfs: do not list TID 0 in /proc/<pid>/task 2021-11-09 10:02:48 -08:00
proc-fsconfig-hidepid.c proc: use human-readable values for hidepid 2020-04-22 10:51:22 -05:00
proc-loadavg-001.c selftests: proc: fix warning: _GNU_SOURCE redefined 2020-11-05 10:08:14 -07:00
proc-multiple-procfs.c
proc-pid-vm.c
proc-self-map-files-001.c
proc-self-map-files-002.c
proc-self-syscall.c selftests: proc: fix warning: _GNU_SOURCE redefined 2020-11-05 10:08:14 -07:00
proc-self-wchan.c
proc-subset-pid.c selftests: proc: test subset=pid 2021-05-06 19:24:11 -07:00
proc-tid0.c procfs: do not list TID 0 in /proc/<pid>/task 2021-11-09 10:02:48 -08:00
proc-uptime-001.c
proc-uptime-002.c selftests: proc: fix warning: _GNU_SOURCE redefined 2020-11-05 10:08:14 -07:00
proc-uptime.h
proc.h
read.c proc: mandate ->proc_lseek in "struct proc_ops" 2021-05-06 19:24:11 -07:00
self.c
setns-dcache.c
setns-sysvipc.c
thread-self.c