[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1166142499.594566.1522760284362.JavaMail.jboss@ep1ml501>
Date: Tue, 03 Apr 2018 18:28:04 +0530
From: Vaneet Narang <v.narang@...sung.com>
To: Maninder Singh <maninder1.s@...sung.com>,
"linux@...linux.org.uk" <linux@...linux.org.uk>,
"dustinb@...eaurora.org" <dustinb@...eaurora.org>
CC: "linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
AMIT SAHRAWAT <a.sahrawat@...sung.com>,
PANKAJ MISHRA <pankaj.m@...sung.com>
Subject: RE: [PATCH v2] arm/stacktrace: stop unwinding after an invalid
address.
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
Download attachment "rcptInfo.txt" of type "application/octet-stream" (1636 bytes)
Powered by blists - more mailing lists