mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
Kernel: Don't try to dump invalid code memory in page fault handler.
This commit is contained in:
parent
3ebbefd916
commit
2a7af0eacf
Notes:
sideshowbarker
2024-07-19 15:55:00 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2a7af0eacf3
1 changed files with 5 additions and 3 deletions
|
@ -263,8 +263,9 @@ void exception_14_handler(RegisterDumpWithExceptionCode& regs)
|
|||
dbgprintf("eax=%x ebx=%x ecx=%x edx=%x\n", regs.eax, regs.ebx, regs.ecx, regs.edx);
|
||||
dbgprintf("ebp=%x esp=%x esi=%x edi=%x\n", regs.ebp, esp, regs.esi, regs.edi);
|
||||
|
||||
byte* codeptr = (byte*)regs.eip;
|
||||
dbgprintf("code: %b %b %b %b %b %b %b %b\n",
|
||||
if (current->validate_read((void*)regs.eip, 8)) {
|
||||
byte* codeptr = (byte*)regs.eip;
|
||||
dbgprintf("code: %b %b %b %b %b %b %b %b\n",
|
||||
codeptr[0],
|
||||
codeptr[1],
|
||||
codeptr[2],
|
||||
|
@ -273,7 +274,8 @@ void exception_14_handler(RegisterDumpWithExceptionCode& regs)
|
|||
codeptr[5],
|
||||
codeptr[6],
|
||||
codeptr[7]
|
||||
);
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
if (current->isRing0()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue