x86_64/CPU: Skip null instruction pointers on stack trace generation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-01-16 20:44:45 +01:00
parent c374c25523
commit 631cdd0204
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -247,7 +247,7 @@ namespace CPU
{
StackFrame* current_frame = (StackFrame*)base_pointer;
// FIXME: Validate that the frame itself is readable, might span across multiple pages
while (current_frame && MemoryManager::validate_readable_page((u64)current_frame))
while (current_frame && MemoryManager::validate_readable_page((u64)current_frame) && current_frame->instruction)
{
callback(current_frame->instruction, arg);
current_frame = current_frame->next;