From: Namhyung Kim Date: Thu, 16 Aug 2012 08:03:24 +0000 (+0900) Subject: sched/debug: Limit sd->*_idx range on sysctl X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~95^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=201c373e8e4823700d3160d5c28e1ab18fd1193e;p=pandora-kernel.git sched/debug: Limit sd->*_idx range on sysctl Various sd->*_idx's are used for refering the rq's load average table when selecting a cpu to run. However they can be set to any number with sysctl knobs so that it can crash the kernel if something bad is given. Fix it by limiting them into the actual range. Signed-off-by: Namhyung Kim Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1345104204-8317-1-git-send-email-namhyung@kernel.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed