* Re: Patch "sched: Disallow sched_attr::sched_policy < 0" has been added to the 3.14-stable tree [not found] <1402340827594@kroah.com> @ 2014-06-09 19:15 ` Dave Jones 2014-06-09 19:32 ` Greg KH 0 siblings, 1 reply; 2+ messages in thread From: Dave Jones @ 2014-06-09 19:15 UTC (permalink / raw) To: linux-kernel; +Cc: peterz, gregkh, mingo, mtk.manpages, torvalds, stable On Mon, Jun 09, 2014 at 12:07:07PM -0700, gregkh@linuxfoundation.org wrote: > > This is a note to let you know that I've just added the patch titled > > sched: Disallow sched_attr::sched_policy < 0 > > to the 3.14-stable tree which can be found at: > http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -3683,6 +3683,9 @@ SYSCALL_DEFINE3(sched_setattr, pid_t, pi > if (sched_copy_attr(uattr, &attr)) > return -EFAULT; > > + if (attr.sched_policy < 0) > + return -EINVAL; > + > rcu_read_lock(); > retval = -ESRCH; > p = find_process_by_pid(pid); Greg, Make sure you also grab b14ed2c273f8ab872ae4e6735fe5ab09cb14b8c3 to fix this commit. Dave ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Patch "sched: Disallow sched_attr::sched_policy < 0" has been added to the 3.14-stable tree 2014-06-09 19:15 ` Patch "sched: Disallow sched_attr::sched_policy < 0" has been added to the 3.14-stable tree Dave Jones @ 2014-06-09 19:32 ` Greg KH 0 siblings, 0 replies; 2+ messages in thread From: Greg KH @ 2014-06-09 19:32 UTC (permalink / raw) To: Dave Jones, linux-kernel, peterz, mingo, mtk.manpages, torvalds, stable On Mon, Jun 09, 2014 at 03:15:51PM -0400, Dave Jones wrote: > On Mon, Jun 09, 2014 at 12:07:07PM -0700, gregkh@linuxfoundation.org wrote: > > > > This is a note to let you know that I've just added the patch titled > > > > sched: Disallow sched_attr::sched_policy < 0 > > > > to the 3.14-stable tree which can be found at: > > http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary > > > --- a/kernel/sched/core.c > > +++ b/kernel/sched/core.c > > @@ -3683,6 +3683,9 @@ SYSCALL_DEFINE3(sched_setattr, pid_t, pi > > if (sched_copy_attr(uattr, &attr)) > > return -EFAULT; > > > > + if (attr.sched_policy < 0) > > + return -EINVAL; > > + > > rcu_read_lock(); > > retval = -ESRCH; > > p = find_process_by_pid(pid); > > Greg, > > Make sure you also grab b14ed2c273f8ab872ae4e6735fe5ab09cb14b8c3 to fix this commit. Ah, missed that one, thanks for pointing it out, now applied. greg k-h ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-09 19:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1402340827594@kroah.com>
2014-06-09 19:15 ` Patch "sched: Disallow sched_attr::sched_policy < 0" has been added to the 3.14-stable tree Dave Jones
2014-06-09 19:32 ` Greg KH
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox