sched: Fix boot crash by zalloc()ing most of the cpu masks
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 2 Nov 2009 10:07:20 +0000 (20:37 +1030)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Dec 2009 18:22:05 +0000 (10:22 -0800)
commit8526322d0f88031465b2235c9e18a9f242dd6669
tree6e18585caaa88433db038d0bfedf09d2b4a89aac
parent3c6f31de43c672ece8bcdd8262efd57c14c20c8f
sched: Fix boot crash by zalloc()ing most of the cpu masks

commit 49557e620339cb134127b5bfbcfecc06b77d0232 upstream.

I got a boot crash when forcing cpumasks offstack on 32 bit,
because find_new_ilb() returned 3 on my UP system (nohz.cpu_mask
wasn't zeroed).

AFAICT the others need to be zeroed too: only
nohz.ilb_grp_nohz_mask is initialized before use.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <200911022037.21282.rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/sched.c