|
From: David W. <we...@cw...> - 2002-05-20 23:21:02
|
On Mon, May 20, 2002 at 10:05:07PM +0200, Hartmut Birr wrote: > It seems, that cr3 is not printed correct. The faulting eip points to 'sti' > within Ki386ContextSwitch. The correct value for cr3 is in eax. The > faulting thread is created with PsCreateSystemThread from win32k. The > context (cr3) is from win32k. The faulting address (cr2) points to the > stack. It seems, that the stack is not visible for some processes. I've > added a KeAttachProcess/KeDetacheProcess sequence in PsInitializeThread. > This solves my problem. > Yes of course, I hadn't considered the possibly that the stack could be mapped by a lazily allocated page table. I don't think this fixes all the problems however since, in principle, a thread could be switched to while it is attached to a different process. Would it be possible to try the attached patch instead? |