• I
    x86: stackprotector & PARAVIRT fix · 4c7f8900
    Ingo Molnar 提交于
    on paravirt enabled 64-bit kernels the paravirt ops do function
    calls themselves - which is bad with the stackprotector - for
    example pda_init() loads 0 into %gs and then does MSR_GS_BASE
    write (which modifies gs.base) - but that MSR write is a function
    call on paravirt, which with stackprotector tries to read the
    stack canary from the PDA ... crashing the bootup.
    
    the solution was suggested by Arjan van de Ven: to exclude paravirt.c
    from stackprotector, too many lowlevel functionality is in it. It's
    not like we'll have paravirt functions with character arrays on
    their stack anyway...
    Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
    4c7f8900
Makefile 3.5 KB