mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
Do not crash the kernel when accessing a guard page.
svn path=/trunk/; revision=39465
This commit is contained in:
parent
0a8c6e11ea
commit
dc0a2cec45
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue