Kernel: Fix SMAP violation when doing a crash dump

This commit is contained in:
Andreas Kling 2020-01-06 14:26:47 +01:00
parent 8e7420ddf2
commit 0e6ea49410
Notes: sideshowbarker 2024-07-19 10:18:24 +09:00

View file

@ -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],