• Rusty Russell's avatar
    sched: Fix isolcpus boot option · bdddd296
    Rusty Russell authored
    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 49557e62 (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: default avatarAnton Blanchard <anton@samba.org>
    Signed-off-by: default avatarRusty 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: default avatarIngo Molnar <mingo@elte.hu>
    Tested-by: default avatarAnton Blanchard <anton@samba.org>
    bdddd296
sched.c 268 KB