summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-06 14:26:47 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-06 14:26:47 +0100
commit0e6ea494107a3989a13e556c1768b60afb984610 (patch)
treead2a57313689c6da3503527a9608e4ff3d24fc44
parent8e7420ddf28c95b4ecfb3d4f3e559cdbc62453fe (diff)
downloadserenity-0e6ea494107a3989a13e556c1768b60afb984610.zip
Kernel: Fix SMAP violation when doing a crash dump
-rw-r--r--Kernel/Arch/i386/CPU.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Arch/i386/CPU.cpp b/Kernel/Arch/i386/CPU.cpp
index 5fdd7118ce..01d5cc14d6 100644
--- a/Kernel/Arch/i386/CPU.cpp
+++ b/Kernel/Arch/i386/CPU.cpp
@@ -147,6 +147,7 @@ static void dump(const RegisterDump& regs)
kprintf("ebp=%08x esp=%08x esi=%08x edi=%08x\n", regs.ebp, esp, regs.esi, regs.edi);
if (current && current->process().validate_read((void*)regs.eip, 8)) {
+ SmapDisabler disabler;
u8* codeptr = (u8*)regs.eip;
kprintf("code: %02x %02x %02x %02x %02x %02x %02x %02x\n",
codeptr[0],