]> Gentwo Git Trees - linux/.git/commit
pid: optional first-fit pid allocation
authorMichal Koutný <mkoutny@suse.com>
Fri, 21 Feb 2025 17:02:49 +0000 (18:02 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 23 Feb 2025 06:26:20 +0000 (22:26 -0800)
commit6799f20bc8b21d940cb3e0944861b2d8f8c69be8
tree7873c071939d28f966a26df07a080ecc067ba78d
parentc08f9b29d75ddafd38842973f73b31c4ed383e04
pid: optional first-fit pid allocation

Noone would need to use this allocation strategy (it's slower, pid
numbers collide sooner). Its primary purpose are pid namespaces in
conjunction with pids.max cgroup limit which keeps (virtual) pid numbers
below the given limit. This is for 32-bit userspace programs that may
not work well with pid numbers above 65536.

Link: https://lore.kernel.org/r/20241122132459.135120-1-aleksandr.mikhalitsyn@canonical.com/
Link: https://lkml.kernel.org/r/20250221170249.890014-3-mkoutny@suse.com
Cc: Alexander Mikhalitsyn <alexander@mihalicyn.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Kees Cook <kees@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/admin-guide/sysctl/kernel.rst
include/linux/pid_namespace.h
kernel/pid.c
kernel/pid_namespace.c