diff options
author | Peter Zijlstra | 2014-05-09 10:49:03 +0200 |
---|---|---|
committer | Ingo Molnar | 2014-05-22 10:21:26 +0200 |
commit | dbdb22754fde671dc93d2fae06f8be113d47f2fb (patch) | |
tree | 150c824b8fb435ca64f034c740804e7a7da2297b /fs/ncpfs/symlink.c | |
parent | sched: Make sched_setattr() correctly return -EFBIG (diff) | |
download | kernel-qcow2-linux-dbdb22754fde671dc93d2fae06f8be113d47f2fb.tar.gz kernel-qcow2-linux-dbdb22754fde671dc93d2fae06f8be113d47f2fb.tar.xz kernel-qcow2-linux-dbdb22754fde671dc93d2fae06f8be113d47f2fb.zip |
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 <mtk.manpages@gmail.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: <stable@vger.kernel.org>
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>
Diffstat (limited to 'fs/ncpfs/symlink.c')
0 files changed, 0 insertions, 0 deletions