diff options
author | Peter Zijlstra <peterz@infradead.org> | 2014-05-09 10:49:03 +0200 |
---|---|---|
committer | Show Liu <show.liu@linaro.org> | 2014-06-18 12:05:23 +0800 |
commit | 1086a7c8498c4f420ea8838350c402d4a1fc1db4 (patch) | |
tree | 7978e1dc540411b99266eb58901d25a002b35c78 /drivers/regulator/userspace-consumer.c | |
parent | 2dc8888707c94fc10551a6f8029315be0c1eb3ba (diff) |
sched: Disallow sched_attr::sched_policy < 0
commit dbdb22754fde671dc93d2fae06f8be113d47f2fb upstream.
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 <mtk.manpages@gmail.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/20140509085311.GJ30445@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/regulator/userspace-consumer.c')
0 files changed, 0 insertions, 0 deletions