Re: [PATCH] Fix x86_64 page fault scheduler race
From: Ingo Molnar
Date: Tue Apr 22 2008 - 09:27:37 EST
* Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx> wrote:
> You are right in that x86_64 does not seems to play as safely as
> x86_32 on this matter; it uses current->mm. Probably it shouldn't
> assume "current" is valid. Actually, I don't see where x86_64 disables
> interrupts around __switch_to, so this would seem to be a race
> condition. Or have I missed something ?
the scheduler disables interrupts around __switch_to(). (x86 does not
set __ARCH_WANT_INTERRUPTS_ON_CTXSW)
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/