From f91b3aab47ed7abe61db4cc59a307d59778f1fa9 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 8 Feb 2020 02:39:46 +0100 Subject: [PATCH] Kernel: Cloned shared regions should also be marked as shared --- Kernel/VM/Region.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Kernel/VM/Region.cpp b/Kernel/VM/Region.cpp index cd1de3c593b..c97c809579b 100644 --- a/Kernel/VM/Region.cpp +++ b/Kernel/VM/Region.cpp @@ -96,6 +96,7 @@ NonnullOwnPtr Region::clone() // Create a new region backed by the same VMObject. auto region = Region::create_user_accessible(m_range, m_vmobject, m_offset_in_vmobject, m_name, m_access); region->set_mmap(m_mmap); + region->set_shared(m_shared); return region; }