mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Replaced KERNEL_BASE by MmSystemRangeStart.
svn path=/trunk/; revision=16596
This commit is contained in:
@@ -469,7 +469,7 @@ KiTrapHandler(PKTRAP_FRAME Tf, ULONG ExceptionNr)
|
||||
* Complete CPU context
|
||||
*/
|
||||
{
|
||||
unsigned int cr2;
|
||||
ULONG_PTR cr2;
|
||||
NTSTATUS Status;
|
||||
ULONG Esp0;
|
||||
|
||||
@@ -528,7 +528,7 @@ KiTrapHandler(PKTRAP_FRAME Tf, ULONG ExceptionNr)
|
||||
*/
|
||||
if (ExceptionNr == 14)
|
||||
{
|
||||
if (Ke386NoExecute && Tf->ErrorCode & 0x10 && cr2 >= KERNEL_BASE)
|
||||
if (Ke386NoExecute && Tf->ErrorCode & 0x10 && cr2 >= (ULONG_PTR)MmSystemRangeStart)
|
||||
{
|
||||
KEBUGCHECKWITHTF(ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY, 0, 0, 0, 0, Tf);
|
||||
}
|
||||
|
||||
@@ -971,7 +971,7 @@ MmCreateMemoryArea(PEPROCESS Process,
|
||||
*BaseAddress = MM_ROUND_DOWN(*BaseAddress, Granularity);
|
||||
|
||||
if (AddressSpace->LowestAddress == MmSystemRangeStart &&
|
||||
*BaseAddress < (PVOID)KERNEL_BASE)
|
||||
*BaseAddress < MmSystemRangeStart)
|
||||
{
|
||||
CHECKPOINT;
|
||||
return STATUS_ACCESS_VIOLATION;
|
||||
|
||||
Reference in New Issue
Block a user