summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@serenityos.org>2020-05-20 15:03:34 +0300
committerAndreas Kling <kling@serenityos.org>2020-05-20 14:11:13 +0200
commit746db0bedbfe09382609d142352cabf01e5d63d6 (patch)
tree3dc0efcd9b97b4e7c3feb92c54933c9219663bf8 /Kernel
parent0dd68a294942c4f1f2022835b674e619e3e9cb4d (diff)
downloadserenity-746db0bedbfe09382609d142352cabf01e5d63d6.zip
Kernel: Validate access to whole regions
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/VM/MemoryManager.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}