mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
Kernel: Fix SMAP violation when doing a crash dump
This commit is contained in:
parent
8e7420ddf2
commit
0e6ea49410
1 changed files with 1 additions and 0 deletions
|
@ -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],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue