mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
[NTOSKRNL]
- Pass a placeholder trap information, indicating that we are unlocked, to MmAccessFault in MmProbeAndLockPages as temporary hack until Mm locking is fixed - Fixes "Assertion 'GuardedMutex->Owner == KeGetCurrentThread()' failed" when faulting in pages via MmProbeAndLockPages - Dedicated to Jim :) svn path=/trunk/; revision=54256
This commit is contained in:
@@ -861,7 +861,9 @@ MmProbeAndLockPages(IN PMDL Mdl,
|
||||
// Access the page
|
||||
//
|
||||
Address = MiPteToAddress(PointerPte);
|
||||
Status = MmAccessFault(FALSE, Address, KernelMode, NULL);
|
||||
|
||||
//HACK: Pass a placeholder TrapInformation so the fault handler knows we're unlocked
|
||||
Status = MmAccessFault(FALSE, Address, KernelMode, (PVOID)0xBADBADA3);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
//
|
||||
@@ -928,7 +930,9 @@ MmProbeAndLockPages(IN PMDL Mdl,
|
||||
//
|
||||
// Access the page
|
||||
//
|
||||
Status = MmAccessFault(TRUE, Address, KernelMode, NULL);
|
||||
|
||||
//HACK: Pass a placeholder TrapInformation so the fault handler knows we're unlocked
|
||||
Status = MmAccessFault(TRUE, Address, KernelMode, (PVOID)0xBADBADA3);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user