From 54f6b52f713d996999bd718b71f7e378fcc01bb1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 30 Mar 2021 11:49:35 +0200 Subject: Kernel: Don't dump regions twice when crashing due to bad access For whatever reason we were dumping regions when first handling the page fault, and then again when tearing down the process. --- Kernel/VM/MemoryManager.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'Kernel') diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp index c264c81a8c..02cd252d45 100644 --- a/Kernel/VM/MemoryManager.cpp +++ b/Kernel/VM/MemoryManager.cpp @@ -475,7 +475,6 @@ PageFaultResponse MemoryManager::handle_page_fault(const PageFault& fault) dbgln_if(PAGE_FAULT_DEBUG, "MM: CPU[{}] handle_page_fault({:#04x}) at {}", Processor::id(), fault.code(), fault.vaddr()); auto* region = find_region_from_vaddr(fault.vaddr()); if (!region) { - Process::current()->space().dump_regions(); return PageFaultResponse::ShouldCrash; } -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0