mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:37:34 +00:00
Kernel: Don't try to dump invalid code memory in page fault handler.
This commit is contained in:
parent
3ebbefd916
commit
2a7af0eacf
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
Add a link
Reference in a new issue