mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
Kernel/Memory: Fix UNMAP_AFTER_INIT page fault handling
This was discovered by me during a work on USB keyboard patches, so it triggered this bug. The printing format for the VirtualAddress part is incorrect, leading to another crash when handling page fault after accessing UNMAP_AFTER_INIT code section.
This commit is contained in:
@@ -740,7 +740,7 @@ PageFaultResponse MemoryManager::handle_page_fault(PageFault const& fault)
|
||||
|
||||
if (faulted_in_range(&start_of_unmap_after_init, &end_of_unmap_after_init)) {
|
||||
auto const* kernel_symbol = symbolicate_kernel_address(fault.vaddr().get());
|
||||
dbgln("Attempt to access UNMAP_AFTER_INIT section ({:p}: {})", fault.vaddr(), kernel_symbol ? kernel_symbol->name : "(Unknown)");
|
||||
dbgln("Attempt to access UNMAP_AFTER_INIT section ({}: {})", fault.vaddr(), kernel_symbol ? kernel_symbol->name : "(Unknown)");
|
||||
return PageFaultResponse::ShouldCrash;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user