]> git.hungrycats.org Git - linux/commit
[PATCH] pidhashing: enforce PID_MAX_LIMIT in sysctls
authorWilliam Lee Irwin III <wli@holomorphy.com>
Tue, 19 Oct 2004 01:10:55 +0000 (18:10 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 01:10:55 +0000 (18:10 -0700)
commitb29bc67075152ce361292cd3f923d7faee1eeef7
tree5c4981efe7c00731d8235f19320c534c03c8d2cd
parent7c11d7fc7017101d6910ef2fe03c83149513c29f
[PATCH] pidhashing: enforce PID_MAX_LIMIT in sysctls

The pid_max sysctl doesn't enforce PID_MAX_LIMIT or sane lower bounds.
RESERVED_PIDS + 1 is the minimum pid_max that won't break alloc_pidmap(), and
PID_MAX_LIMIT may not be aligned to 8*PAGE_SIZE boundaries for unusual values
of PAGE_SIZE, so this also rounds up PID_MAX_LIMIT to it.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/pid.c
kernel/sysctl.c