* [PATCH/RFC] arm: Enable backtrace printing on oops when PC is corrupted
@ 2010-01-21 9:23 Laurent Pinchart
2010-01-26 17:41 ` [PATCH/RFC] arm: Enable backtrace printing on oops when PC iscorrupted Catalin Marinas
0 siblings, 1 reply; 6+ messages in thread
From: Laurent Pinchart @ 2010-01-21 9:23 UTC (permalink / raw)
To: linux-arm-kernel
If PC points outside kernel text, start printing the backtrace at LR
instead.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
arch/arm/kernel/unwind.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/arch/arm/kernel/unwind.c b/arch/arm/kernel/unwind.c
index 786ac2b..50292cd 100644
--- a/arch/arm/kernel/unwind.c
+++ b/arch/arm/kernel/unwind.c
@@ -359,7 +359,9 @@ void unwind_backtrace(struct pt_regs *regs, struct task_struct *tsk)
frame.fp = regs->ARM_fp;
frame.sp = regs->ARM_sp;
frame.lr = regs->ARM_lr;
- frame.pc = regs->ARM_pc;
+ /* PC might be corrupted, use LR in that case. */
+ frame.pc = kernel_text_address(regs->ARM_pc)
+ ? regs->ARM_pc : regs->ARM_lr;
} else if (tsk == current) {
frame.fp = (unsigned long)__builtin_frame_address(0);
frame.sp = current_sp;
--
1.6.4.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH/RFC] arm: Enable backtrace printing on oops when PC iscorrupted
2010-01-21 9:23 [PATCH/RFC] arm: Enable backtrace printing on oops when PC is corrupted Laurent Pinchart
@ 2010-01-26 17:41 ` Catalin Marinas
2010-02-18 17:07 ` Russell King - ARM Linux
0 siblings, 1 reply; 6+ messages in thread
From: Catalin Marinas @ 2010-01-26 17:41 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, 2010-01-21 at 09:23 +0000, Laurent Pinchart wrote:
> If PC points outside kernel text, start printing the backtrace at LR
> instead.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
--
Catalin
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH/RFC] arm: Enable backtrace printing on oops when PC iscorrupted
2010-01-26 17:41 ` [PATCH/RFC] arm: Enable backtrace printing on oops when PC iscorrupted Catalin Marinas
@ 2010-02-18 17:07 ` Russell King - ARM Linux
2010-03-04 1:08 ` Laurent Pinchart
0 siblings, 1 reply; 6+ messages in thread
From: Russell King - ARM Linux @ 2010-02-18 17:07 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jan 26, 2010 at 05:41:01PM +0000, Catalin Marinas wrote:
> On Thu, 2010-01-21 at 09:23 +0000, Laurent Pinchart wrote:
> > If PC points outside kernel text, start printing the backtrace at LR
> > instead.
> >
> > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>
> Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Has this been queued by someone? If not, please send it to the patch
system.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH/RFC] arm: Enable backtrace printing on oops when PC iscorrupted
2010-02-18 17:07 ` Russell King - ARM Linux
@ 2010-03-04 1:08 ` Laurent Pinchart
2010-03-04 13:25 ` Catalin Marinas
0 siblings, 1 reply; 6+ messages in thread
From: Laurent Pinchart @ 2010-03-04 1:08 UTC (permalink / raw)
To: linux-arm-kernel
Hi Russell,
On Thursday 18 February 2010 18:07:50 Russell King - ARM Linux wrote:
> On Tue, Jan 26, 2010 at 05:41:01PM +0000, Catalin Marinas wrote:
> > On Thu, 2010-01-21 at 09:23 +0000, Laurent Pinchart wrote:
> > > If PC points outside kernel text, start printing the backtrace at LR
> > > instead.
> > >
> > > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> >
> > Acked-by: Catalin Marinas <catalin.marinas@arm.com>
>
> Has this been queued by someone? If not, please send it to the patch
> system.
As your mail was sent to Catalin I assumed he would take care of that. If the
patch should still be sent to the patch system, could you tell me how to
proceed ?
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH/RFC] arm: Enable backtrace printing on oops when PC iscorrupted
2010-03-04 1:08 ` Laurent Pinchart
@ 2010-03-04 13:25 ` Catalin Marinas
2010-03-04 14:51 ` Laurent Pinchart
0 siblings, 1 reply; 6+ messages in thread
From: Catalin Marinas @ 2010-03-04 13:25 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, 2010-03-04 at 01:08 +0000, Laurent Pinchart wrote:
> On Thursday 18 February 2010 18:07:50 Russell King - ARM Linux wrote:
> > On Tue, Jan 26, 2010 at 05:41:01PM +0000, Catalin Marinas wrote:
> > > On Thu, 2010-01-21 at 09:23 +0000, Laurent Pinchart wrote:
> > > > If PC points outside kernel text, start printing the backtrace at LR
> > > > instead.
> > > >
> > > > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > >
> > > Acked-by: Catalin Marinas <catalin.marinas@arm.com>
> >
> > Has this been queued by someone? If not, please send it to the patch
> > system.
>
> As your mail was sent to Catalin I assumed he would take care of that. If the
> patch should still be sent to the patch system, could you tell me how to
> proceed ?
The patch system doesn't handle the patch authorship properly, it is
just assigning it to the person submitting it. That's why I haven't sent
your patch.
Have a look at http://www.arm.linux.org.uk/developer/patches/ and the
help.
If you don't want to subscribe, I can put the patch somewhere on a Git
tree and send Russell a pull request.
--
Catalin
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH/RFC] arm: Enable backtrace printing on oops when PC iscorrupted
2010-03-04 13:25 ` Catalin Marinas
@ 2010-03-04 14:51 ` Laurent Pinchart
0 siblings, 0 replies; 6+ messages in thread
From: Laurent Pinchart @ 2010-03-04 14:51 UTC (permalink / raw)
To: linux-arm-kernel
Hi Catalin,
On Thursday 04 March 2010 14:25:03 Catalin Marinas wrote:
> On Thu, 2010-03-04 at 01:08 +0000, Laurent Pinchart wrote:
> > On Thursday 18 February 2010 18:07:50 Russell King - ARM Linux wrote:
> > > On Tue, Jan 26, 2010 at 05:41:01PM +0000, Catalin Marinas wrote:
> > > > On Thu, 2010-01-21 at 09:23 +0000, Laurent Pinchart wrote:
> > > > > If PC points outside kernel text, start printing the backtrace at
> > > > > LR instead.
> > > > >
> > > > > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > > >
> > > > Acked-by: Catalin Marinas <catalin.marinas@arm.com>
> > >
> > > Has this been queued by someone? If not, please send it to the patch
> > > system.
> >
> > As your mail was sent to Catalin I assumed he would take care of that. If
> > the patch should still be sent to the patch system, could you tell me
> > how to proceed ?
>
> The patch system doesn't handle the patch authorship properly, it is
> just assigning it to the person submitting it. That's why I haven't sent
> your patch.
>
> Have a look at http://www.arm.linux.org.uk/developer/patches/ and the
> help.
>
> If you don't want to subscribe, I can put the patch somewhere on a Git
> tree and send Russell a pull request.
Thanks for the information. I've submitted the patch
(http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=5977/1)
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-03-04 14:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-21 9:23 [PATCH/RFC] arm: Enable backtrace printing on oops when PC is corrupted Laurent Pinchart
2010-01-26 17:41 ` [PATCH/RFC] arm: Enable backtrace printing on oops when PC iscorrupted Catalin Marinas
2010-02-18 17:07 ` Russell King - ARM Linux
2010-03-04 1:08 ` Laurent Pinchart
2010-03-04 13:25 ` Catalin Marinas
2010-03-04 14:51 ` Laurent Pinchart
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.