From: Ralf Baechle <ralf@linux-mips.org>
To: Lin Ming <mlin@ss.pku.edu.cn>
Cc: linux-mips@linux-mips.org
Subject: Re: panic in hrtimer_run_queues
Date: Tue, 28 Aug 2012 10:13:53 +0200 [thread overview]
Message-ID: <20120828081353.GB23288@linux-mips.org> (raw)
In-Reply-To: <CAF1ivSYqNpzZD5U6Ne_FL_gDmPC0aETb7Gt3uyWZzNp9tTMP5Q@mail.gmail.com>
On Tue, Aug 28, 2012 at 09:42:51AM +0800, Lin Ming wrote:
> Hi list,
>
> I'm working on a board running 2.6.30 kernel.
> The panic log is attached in the end.
>
> 8002c098: 0c00aeaa jal 8002baa8 <__remove_hrtimer>
> 8002c09c: 00003821 move a3,zero
> 8002c0a0: 8e220020 lw v0,32(s1)
> 8002c0a4: 0040f809 jalr v0
> 8002c0a8: 02202021 move a0,s1
> 8002c0ac: 02002821 move a1,s0
> ------> panic happens here.
> But this instruction just move data between registers.
> How could it cause memory access panic?
in case of a jal or jalr instruction the return address will point to the
instruction of the jal(r) instruction plus 2 instruction as here. This
is where in case of a successful return from the subroutine execution
would continue.
But in your case v0 (that's register $2) contains 0 and it's been loaded
from address 32(s1) before, so it would appear that memory at that
address has either been overwritten or not initialized.
Ralf
next prev parent reply other threads:[~2012-08-28 8:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-28 1:42 panic in hrtimer_run_queues Lin Ming
2012-08-28 5:42 ` Noor
2012-08-28 8:13 ` Ralf Baechle [this message]
2012-08-28 9:40 ` Lin Ming
2012-10-13 5:07 ` Noor
2012-10-13 6:27 ` Lin Ming
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120828081353.GB23288@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=mlin@ss.pku.edu.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox