From 746db0bedbfe09382609d142352cabf01e5d63d6 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Wed, 20 May 2020 15:03:34 +0300 Subject: Kernel: Validate access to whole regions --- Kernel/VM/MemoryManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel') diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp index 7944c570f0..29936251d6 100644 --- a/Kernel/VM/MemoryManager.cpp +++ b/Kernel/VM/MemoryManager.cpp @@ -668,7 +668,7 @@ bool MemoryManager::validate_range(const Process& process, VirtualAddress base_v return false; } } - vaddr = vaddr.offset(PAGE_SIZE); + vaddr = region->range().end(); } return true; } -- cgit v1.2.3