From 20e27009523c2e69ec4037c8c46867bae4f20cfc Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 27 Dec 2020 23:41:36 +0100 Subject: [PATCH] Kernel: Allow Userspace pointers with invalid content It's not an error to create a Userspace that points to kernel memory as the point of Userspace is not to validate the address, but rather to choose safe overloads that do validation before any data transfer takes place. Fixes #4581. --- AK/Userspace.h | 1 - 1 file changed, 1 deletion(-) diff --git a/AK/Userspace.h b/AK/Userspace.h index 244fc5fb6a..302a1aa567 100644 --- a/AK/Userspace.h +++ b/AK/Userspace.h @@ -60,7 +60,6 @@ public: Userspace(FlatPtr ptr) : m_ptr(ptr) { - ASSERT(m_ptr < 0xc0000000); } FlatPtr ptr() const { return m_ptr; }