From: Peter Zijlstra Date: Fri, 9 May 2014 08:49:03 +0000 (+0200) Subject: sched: Disallow sched_attr::sched_policy < 0 X-Git-Tag: omap-for-v3.16/fixes-against-rc1~116^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbdb22754fde671dc93d2fae06f8be113d47f2fb;p=pandora-kernel.git sched: Disallow sched_attr::sched_policy < 0 The scheduler uses policy=-1 to preserve the current policy state to implement sys_sched_setparam(), this got exposed to userspace by accident through sys_sched_setattr(), cure this. Reported-by: Michael Kerrisk Signed-off-by: Peter Zijlstra Acked-by: Michael Kerrisk Cc: Cc: Linus Torvalds Link: http://lkml.kernel.org/r/20140509085311.GJ30445@twins.programming.kicks-ass.net Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed