RE: [PATCH v2] arm/stacktrace: stop unwinding after an invalid address.

From: Vaneet Narang
Date: Tue Apr 03 2018 - 08:58:22 EST


Â
Hi Russell,


>__dabt_usr+0x44/0x60
>0xb6748ea4
>^^^^^^^^

>--- a/arch/arm/kernel/stacktrace.c
>+++ b/arch/arm/kernel/stacktrace.c
>@@ -92,6 +92,9 @@ static int save_trace(struct stackframe *frame, void *d)
>
> regs = (struct pt_regs *)frame->sp;
>
>+ if (!__kernel_text_address(regs->ARM_pc))
>+ return 1;
>+
> trace->entries[trace->nr_entries++] = regs->ARM_pc;

Â
Any Inputs or Comments on this patch to avoid storing user space entries
during unwind.
Â
Regards,
Vaneet Narang

Attachment: rcptInfo.txt
Description: Binary data