mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
Kernel: Fix SMAP violation when doing a crash dump
This commit is contained in:
parent
8e7420ddf2
commit
0e6ea49410
Notes:
sideshowbarker
2024-07-19 10:18:24 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0e6ea494107
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
Reference in a new issue