Re: [PATCH] Add noinline attribute

From: Linus Torvalds
Date: Wed Jan 14 2004 - 18:53:58 EST




On Wed, 14 Jan 2004, Andi Kleen wrote:
>
> do_test_wp_bit cannot be inlined, otherwise the kernel doesn't boot
> because the exception tables get reordered.

This patch seems to just hide the _real_ bug, which is that the exception
table gets confused.

If the exception table is confused, you'll get oopses on bad user system
call pointers, but since that is uncommon, you'll never see it under
normal circumstances. This is the only exception that you'll always see.

So it sounds like you have a compiler combination that breaks the
exception table totally for _any_ function called from any non-regular
segment, and this just happens to be the only one you actually saw.

How about just fixing the exception table instead? A bogo-sort at boot
time?

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/