stackprotector: remove self-test
authorIngo Molnar <mingo@elte.hu>
Sun, 13 Jul 2008 19:42:44 +0000 (21:42 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 13 Jul 2008 19:50:46 +0000 (21:50 +0200)
commit4f962d4d65923d7b722192e729840cfb79af0a5a
tree33576a5a4093f2f937dd40be899d92982f6232bd
parentaf9ff7868f0f76d3364351b1641b9dfa99588e77
stackprotector: remove self-test

turns out gcc generates such stackprotector-failure sequences
in certain circumstances:

        movq    -8(%rbp), %rax  # D.16032,
        xorq    %gs:40, %rax    #,
        jne     .L17    #,
        leave
        ret
.L17:
        call    __stack_chk_fail        #
        .size   __stack_chk_test_func, .-__stack_chk_test_func
        .section        .init.text,"ax",@progbits
        .type   panic_setup, @function
panic_setup:
        pushq   %rbp    #

note that there's no jump back to the failing context after the
call to __stack_chk_fail - i.e. it has a ((noreturn)) attribute.

Which is fair enough in the normal case but kills the self-test.
(as we cannot reliably return in the self-test)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/panic.c