Re: Sysenter crash with Nested Task Bit set

From: Ingo Molnar
Date: Mon Sep 18 2006 - 11:33:40 EST



* Andi Kleen <ak@xxxxxxx> wrote:

> > #define switch_to(prev,next,last) do { \
> > unsigned long esi,edi; \
> > - asm volatile("pushl %%ebp\n\t" \
> > + asm volatile("pushfl\n\t" /* Save flags */ \
> > + "pushl %%ebp\n\t" \
>
> We used to do that pushfl/popfl some time ago, but Ben removed it
> because it was slow on P4. Ok, nobody thought of that case back then.

I _should_ have thought of that though, because when this change was
done originally i had to reintroduce it both for exec-shield and for
-rt, so apparently it must have triggered in certain circumstances - i
just didnt notice the reason. (but recent exec-shield and -rt patches
dont have this revert, so the condition must have gone away. But it was
a long time ago.)

Ingo
-
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/