From: Greg Ungerer <gerg@snapgear.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Andreas Schwab <schwab@linux-m68k.org>,
Linux/m68k <linux-m68k@lists.linux-m68k.org>
Subject: Re: NULL pointer dereference in 3.3-rc6
Date: Mon, 19 Mar 2012 13:52:25 +1000 [thread overview]
Message-ID: <4F66AD79.2060000@snapgear.com> (raw)
In-Reply-To: <CAMuHMdW20E9k6MUUQQyUxHLLzQLEOQKA6CR3vMTc3FLD58fnQQ@mail.gmail.com>
Hi Geert,
On 19/03/12 06:03, Geert Uytterhoeven wrote:
> On Sun, Mar 18, 2012 at 13:52, Andreas Schwab<schwab@linux-m68k.org> wrote:
>> Geert Uytterhoeven<geert@linux-m68k.org> writes:
>>
>>> I'm a bit puzzled, as the crash location is not a memory dereference but
>>> the "set_fs(MAKE_MM_SEG(wbs));" in do_040writeback1().
>>
>> I guess the integer unit can move ahead while the memory unit processes
>> the write. áTake a look at the places that jump to 0x5da8.
>
> Thanks for the hint!
>
> Given that a1 is zero, and d1 is 64, it looks like it's the movesl at
> 5e14 that caused the problem:
>
>>> 5e14: 0e91 2800 movesl %d2,%a1@
>>> 5e18: 2400 movel %d0,%d2
>>> 5e1a: 608c bras 5da8<berr_040cleanup+0x144>
>
> This corresponds to
>
> case BA_SIZE_LONG:
> res = put_user(wbd, (int __user *)wba);
>
> in do_040writeback1(). So wba is zero. Oops...
Did this work properly in 3.2?
If so can you git bisect it to find a problem patch?
There has been quite a bit of m68k core change with all the ColdFire
MMU new code coming in for 3.3. I wouldn't expect any specific problems
with existing 040 code... But it does touch a lot of code in little
ways.
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: gerg@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
8 Gardner Close FAX: +61 7 3217 5323
Milton, QLD, 4064, Australia WEB: http://www.SnapGear.com
next prev parent reply other threads:[~2012-03-19 3:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-18 11:35 NULL pointer dereference in 3.3-rc6 Geert Uytterhoeven
2012-03-18 12:52 ` Andreas Schwab
2012-03-18 20:03 ` Geert Uytterhoeven
2012-03-19 3:52 ` Greg Ungerer [this message]
2012-03-19 11:51 ` Geert Uytterhoeven
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=4F66AD79.2060000@snapgear.com \
--to=gerg@snapgear.com \
--cc=geert@linux-m68k.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=schwab@linux-m68k.org \
/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