lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 21 Feb 2014 13:32:01 -0800 From: tip-bot for Thomas Gleixner <tipbot@...or.com> To: linux-tip-commits@...r.kernel.org Cc: linux-kernel@...r.kernel.org, mingo@...hat.com, hpa@...or.com, mingo@...nel.org, peterz@...radead.org, bigeasy@...utronix.de, tglx@...utronix.de Subject: [tip:sched/core] sched: Adjust sched_reset_on_fork when nothing else changes Commit-ID: a296858625f810c28ceb360d448d4db5758ca48a Gitweb: http://git.kernel.org/tip/a296858625f810c28ceb360d448d4db5758ca48a Author: Thomas Gleixner <tglx@...utronix.de> AuthorDate: Fri, 7 Feb 2014 20:58:40 +0100 Committer: Thomas Gleixner <tglx@...utronix.de> CommitDate: Fri, 21 Feb 2014 21:43:19 +0100 sched: Adjust sched_reset_on_fork when nothing else changes If the policy and priority remain unchanged a possible modification of sched_reset_on_fork gets lost in the early exit path. [bigeasy: rebase ontop of v3.14-rc1] Cc: Ingo Molnar <mingo@...hat.com> Cc: stable@...r.kernel.org Cc: stable@...r.kernel.org Signed-off-by: Thomas Gleixner <tglx@...utronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@...utronix.de> Signed-off-by: Peter Zijlstra <peterz@...radead.org> Link: http://lkml.kernel.org/r/1391803122-4425-5-git-send-email-bigeasy@linutronix.de Signed-off-by: Thomas Gleixner <tglx@...utronix.de> --- kernel/sched/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 241f7465..7527e68 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -3370,7 +3370,8 @@ recheck: } /* - * If not changing anything there's no need to proceed further: + * If not changing anything there's no need to proceed further, + * but store a possible modification of reset_on_fork. */ if (unlikely(policy == p->policy)) { if (fair_policy(policy) && attr->sched_nice != task_nice(p)) @@ -3380,6 +3381,7 @@ recheck: if (dl_policy(policy)) goto change; + p->sched_reset_on_fork = reset_on_fork; task_rq_unlock(rq, p, &flags); return 0; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists