From 363a90160378705d96fdaf1d99542774a0efa704 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 30 Jul 2021 15:12:54 +0200 Subject: [PATCH] Kernel: Copy the "purgeable" flag when cloning AnonymousVMObject --- Kernel/VM/AnonymousVMObject.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Kernel/VM/AnonymousVMObject.cpp b/Kernel/VM/AnonymousVMObject.cpp index 2700590f43..522f27a521 100644 --- a/Kernel/VM/AnonymousVMObject.cpp +++ b/Kernel/VM/AnonymousVMObject.cpp @@ -142,6 +142,7 @@ AnonymousVMObject::AnonymousVMObject(AnonymousVMObject const& other) , m_unused_committed_pages(other.m_unused_committed_pages) , m_cow_map() // do *not* clone this , m_shared_committed_cow_pages(other.m_shared_committed_cow_pages) // share the pool + , m_purgeable(other.m_purgeable) { // We can't really "copy" a spinlock. But we're holding it. Clear in the clone VERIFY(other.m_lock.is_locked());