]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sched: Fix isolcpus boot option
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 2 Dec 2009 03:39:16 +0000 (14:09 +1030)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 28 Jan 2010 23:01:09 +0000 (15:01 -0800)
commit08b84be9e906f97340acbf6c5daaa53bbf4fa194
treeff5560bd728d1536a67e85ec84262d5935d003fb
parenteb9dbd9c1ffe8fa93e385c186e25ffa7bad53b67
sched: Fix isolcpus boot option

commit bdddd2963c0264c56f18043f6fa829d3c1d3d1c0 upstream.

Anton Blanchard wrote:

> We allocate and zero cpu_isolated_map after the isolcpus
> __setup option has run. This means cpu_isolated_map always
> ends up empty and if CPUMASK_OFFSTACK is enabled we write to a
> cpumask that hasn't been allocated.

I introduced this regression in 49557e620339cb13 (sched: Fix
boot crash by zalloc()ing most of the cpu masks).

Use the bootmem allocator if they set isolcpus=, otherwise
allocate and zero like normal.

Reported-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: peterz@infradead.org
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: <stable@kernel.org>
LKML-Reference: <200912021409.17013.rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Tested-by: Anton Blanchard <anton@samba.org>
kernel/sched.c