Kernel: Clear the COW bits when making an AnonymousVMObject volatile

This commit is contained in:
Andreas Kling 2021-07-26 00:27:42 +02:00
commit 101486279f
Notes: sideshowbarker 2024-07-18 08:20:41 +09:00

View file

@ -224,6 +224,9 @@ KResult AnonymousVMObject::set_volatile(bool is_volatile, bool& was_purged)
m_shared_committed_cow_pages = nullptr;
if (!m_cow_map.is_null())
m_cow_map = {};
m_volatile = true;
m_was_purged = false;
return KSuccess;