StackTracer: only trace frames within the kernel address space

This commit is contained in:
apio 2022-09-21 20:59:41 +02:00
parent d54ed0dc8b
commit 3a69551dcc

View File

@ -20,7 +20,7 @@ typedef struct stackframe
void StackTracer::trace()
{
stackframe* frame = (stackframe*)m_base_pointer;
while (frame)
while (frame && (uint64_t)frame > 0xfffffffff8000000)
{
char symbol_name[512];
get_symbol_name(frame->instruction, symbol_name);