diff --git a/src/system/kernel/arch/x86/arch_debug.cpp b/src/system/kernel/arch/x86/arch_debug.cpp index 217eba280e..7e69ccf7d6 100644 --- a/src/system/kernel/arch/x86/arch_debug.cpp +++ b/src/system/kernel/arch/x86/arch_debug.cpp @@ -822,6 +822,9 @@ is_calling(struct thread *thread, addr_t eip, const char *pattern, if (pattern == NULL) return eip >= start && eip < end; + if (!IS_KERNEL_ADDRESS(eip)) + return false; + const char *symbol; if (lookup_symbol(thread, eip, NULL, &symbol, NULL, NULL) != B_OK) return false;