mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
Do not crash the kernel when accessing a guard page.
svn path=/trunk/; revision=39465
This commit is contained in:
@@ -287,11 +287,20 @@ MmNotPresentFaultVirtualMemory(PMM_AVL_TABLE AddressSpace,
|
||||
Region = MmFindRegion(MemoryArea->StartingAddress,
|
||||
&MemoryArea->Data.VirtualMemoryData.RegionListHead,
|
||||
Address, NULL);
|
||||
|
||||
if (Region->Type == MEM_RESERVE || Region->Protect == PAGE_NOACCESS)
|
||||
{
|
||||
return(STATUS_ACCESS_VIOLATION);
|
||||
}
|
||||
|
||||
/*
|
||||
* FIXME
|
||||
*/
|
||||
if (Region->Protect & PAGE_GUARD)
|
||||
{
|
||||
return(STATUS_GUARD_PAGE_VIOLATION);
|
||||
}
|
||||
|
||||
/*
|
||||
* Get or create a page operation
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user