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: Mon, 4 Jan 2010 16:33:46 -0800 From: Greg Kroah-Hartman <gregkh@...e.de> To: linux-kernel@...r.kernel.org, stable@...nel.org, stable-review@...nel.org Cc: torvalds@...ux-foundation.org, akpm@...ux-foundation.org, alan@...rguk.ukuu.org.uk, Peter Zijlstra <a.p.zijlstra@...llo.nl>, Gregory Haskins <ghaskins@...ell.com>, Siddha Suresh B <suresh.b.siddha@...el.com>, Martin Schwidefsky <schwidefsky@...ibm.com>, Ingo Molnar <mingo@...e.hu>, Greg Kroah-Hartman <gregkh@...e.de> Subject: [PATCH 93/97] sched: Sched_rt_periodic_timer vs cpu hotplug From: Peter Zijlstra <a.p.zijlstra@...llo.nl> commit 047106adcc85e3023da210143a6ab8a55df9e0fc upstream. Heiko reported a case where a timer interrupt managed to reference a root_domain structure that was already freed by a concurrent hot-un-plug operation. Solve this like the regular sched_domain stuff is also synchronized, by adding a synchronize_sched() stmt to the free path, this ensures that a root_domain stays present for any atomic section that could have observed it. Reported-by: Heiko Carstens <heiko.carstens@...ibm.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@...llo.nl> Acked-by: Heiko Carstens <heiko.carstens@...ibm.com> Cc: Gregory Haskins <ghaskins@...ell.com> Cc: Siddha Suresh B <suresh.b.siddha@...el.com> Cc: Martin Schwidefsky <schwidefsky@...ibm.com> LKML-Reference: <1258363873.26714.83.camel@...top> Signed-off-by: Ingo Molnar <mingo@...e.hu> Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de> --- kernel/sched.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kernel/sched.c b/kernel/sched.c index 04144db..dd0dccd 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -7925,6 +7925,8 @@ sd_parent_degenerate(struct sched_domain *sd, struct sched_domain *parent) static void free_rootdomain(struct root_domain *rd) { + synchronize_sched(); + cpupri_cleanup(&rd->cpupri); free_cpumask_var(rd->rto_mask); -- 1.6.6 -- 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