summaryrefslogtreecommitdiffstats
path: root/kernel/ptrace.c
diff options
context:
space:
mode:
authorBart Samwel2006-03-24 12:15:50 +0100
committerLinus Torvalds2006-03-24 16:33:20 +0100
commitcba9f33d13a8ca3125b2a30abe2425ce562d8a83 (patch)
treee93e3da369be7e9f55d15d02908606a43cecfbb9 /kernel/ptrace.c
parent[PATCH] Represent laptop_mode as jiffies internally (diff)
downloadkernel-qcow2-linux-cba9f33d13a8ca3125b2a30abe2425ce562d8a83.tar.gz
kernel-qcow2-linux-cba9f33d13a8ca3125b2a30abe2425ce562d8a83.tar.xz
kernel-qcow2-linux-cba9f33d13a8ca3125b2a30abe2425ce562d8a83.zip
[PATCH] Range checking in do_proc_dointvec_(userhz_)jiffies_conv
When (integer) sysctl values are in either seconds or centiseconds, but represented internally as jiffies, the allowable value range is decreased. This patch adds range checks to the conversion routines. For values in seconds: maximum LONG_MAX / HZ. For values in centiseconds: maximum (LONG_MAX / HZ) * USER_HZ. (BTW, does anyone else feel that an interface in seconds should not be accepting negative values?) Signed-off-by: Bart Samwel <bart@samwel.tk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/ptrace.c')
0 files changed, 0 insertions, 0 deletions