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

Vaneet Narang v.narang at samsung.com
Tue Apr 3 05:58:04 PDT 2018


 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rcptInfo.txt
Type: application/octet-stream
Size: 1636 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180403/79f28a2f/attachment-0001.obj>


More information about the linux-arm-kernel mailing list