sysctl: add some missing input constraint checks
authorPetr Holasek <pholasek@redhat.com>
Wed, 23 Mar 2011 23:43:09 +0000 (16:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Mar 2011 02:46:51 +0000 (19:46 -0700)
commitcb16e95fa2996743a6e80a665ed2ed0590bd38cf
tree7128a7d03a94a68dd9550f33ac66876bf6854ad0
parent256c53a65128cbc8a766b1503f3f25a52a8d07cb
sysctl: add some missing input constraint checks

Add boundaries of allowed input ranges for: dirty_expire_centisecs,
drop_caches, overcommit_memory, page-cluster and panic_on_oom.

Signed-off-by: Petr Holasek <pholasek@redhat.com>
Acked-by: Dave Young <hidave.darkstar@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/drop_caches.c
kernel/sysctl.c