Re: desc v0.61 found a 2.5 kernel bug

From: Chuck Ebbert (76306.1226@compuserve.com)
Date: Tue Apr 29 2003 - 21:33:09 EST


Gabriel Paubert wrote:

>> And shouldn't CR3 be intitialized in case anyone actually wants to
>> switch back to the kernel TSS?
>
> For now no, since the only task gate ever taken (double fault), never
> returns (you don't want to update the TSS's CR3 field on every
> switch_to() so you would have to do it in the task gate return
> path, as well as having a correct LDT field).

  I want to write a TSS-based debug exception handler that just does
an iret when it gets invoked. For now it looks easier to just keep
CR3 up-to-date on every switch.

> However, returning from a task gate is so much fraught with races wrt
> segment registers that the best thing to do is to avoid it.

 Even with interrupts off?

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



This archive was generated by hypermail 2b29 : Wed Apr 30 2003 - 22:00:33 EST