diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2013-05-03 14:22:36 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-05-05 05:12:19 -0400 |
commit | fbd44a607a1a5019bc32c3615cead8c5ee8f89c9 (patch) | |
tree | eec6e7d971a266352d3f8a9d4e90323b4d6afdfb /kernel | |
parent | ce857229e0c3adc211944a13a5579ef84fd7b4af (diff) |
tick: Use zalloc_cpumask_var for allocating offstack cpumasks
commit b352bc1cbc (tick: Convert broadcast cpu bitmaps to
cpumask_var_t) broke CONFIG_CPUMASK_OFFSTACK in a very subtle way.
Instead of allocating the cpumasks with zalloc_cpumask_var it uses
alloc_cpumask_var, so we can get random data there, which of course
confuses the logic completely and causes random failures.
Reported-and-tested-by: Dave Jones <davej@redhat.com>
Reported-and-tested-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/alpine.LFD.2.02.1305032015060.2990@ionos
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/time/tick-broadcast.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c index 61d00a8cdf2f..d70cdc42c829 100644 --- a/kernel/time/tick-broadcast.c +++ b/kernel/time/tick-broadcast.c | |||
@@ -785,11 +785,11 @@ bool tick_broadcast_oneshot_available(void) | |||
785 | 785 | ||
786 | void __init tick_broadcast_init(void) | 786 | void __init tick_broadcast_init(void) |
787 | { | 787 | { |
788 | alloc_cpumask_var(&tick_broadcast_mask, GFP_NOWAIT); | 788 | zalloc_cpumask_var(&tick_broadcast_mask, GFP_NOWAIT); |
789 | alloc_cpumask_var(&tmpmask, GFP_NOWAIT); | 789 | zalloc_cpumask_var(&tmpmask, GFP_NOWAIT); |
790 | #ifdef CONFIG_TICK_ONESHOT | 790 | #ifdef CONFIG_TICK_ONESHOT |
791 | alloc_cpumask_var(&tick_broadcast_oneshot_mask, GFP_NOWAIT); | 791 | zalloc_cpumask_var(&tick_broadcast_oneshot_mask, GFP_NOWAIT); |
792 | alloc_cpumask_var(&tick_broadcast_pending_mask, GFP_NOWAIT); | 792 | zalloc_cpumask_var(&tick_broadcast_pending_mask, GFP_NOWAIT); |
793 | alloc_cpumask_var(&tick_broadcast_force_mask, GFP_NOWAIT); | 793 | zalloc_cpumask_var(&tick_broadcast_force_mask, GFP_NOWAIT); |
794 | #endif | 794 | #endif |
795 | } | 795 | } |