From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: M A Young <m.a.young@durham.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: Crash on boot with 2.6.37-rc8-git3
Date: Fri, 7 Jan 2011 16:23:59 -0500 [thread overview]
Message-ID: <20110107212359.GA22976@dumpdata.com> (raw)
In-Reply-To: <alpine.LFD.2.02.1101072034080.9613@vega4.dur.ac.uk>
On Fri, Jan 07, 2011 at 08:34:43PM +0000, M A Young wrote:
> On Fri, 7 Jan 2011, Konrad Rzeszutek Wilk wrote:
> >>BUG unable to handle kernel NULL pointer dereference at
> >>IP: [<ffffffff81b69b92>] setup_node_bootmem+0x16b/0x199
>
> >Hmmm, I did see something similar to this in 2.6.37-rc1, but we fixed
> >that quickly. It was triggered by having 4GB of memory or so and
> >the work-around was to use dom0_mem=max:2GB.
> >
> >Can you send the photo? Maybe the calleer stack will shed some light.
>
> Here are two photos of the output at different times. The context is
>
> 0xffffffff81b69b6d <setup_node_bootmem+326>:
> callq 0xffffffff81475ec9 <printk>
> 0xffffffff81b69b72 <setup_node_bootmem+331>: movslq %ebx,%rdx
> 0xffffffff81b69b75 <setup_node_bootmem+334>: xor %eax,%eax
> 0xffffffff81b69b77 <setup_node_bootmem+336>: mov $0x4fc0,%ecx
> 0xffffffff81b69b7c <setup_node_bootmem+341>:
> mov -0x7e4cb750(,%rdx,8),%rsi
> 0xffffffff81b69b84 <setup_node_bootmem+349>: shr $0xc,%r13
> 0xffffffff81b69b88 <setup_node_bootmem+353>: shr $0xc,%r12
> 0xffffffff81b69b8c <setup_node_bootmem+357>: sub %r13,%r12
> 0xffffffff81b69b8f <setup_node_bootmem+360>: mov %rsi,%rdi
> 0xffffffff81b69b92 <setup_node_bootmem+363>: rep stos %eax,%es:(%rdi)
That looks like:
memset(NODE_DATA(nodeid), 0, sizeof(pg_data_t));
>From the photo, %eax is zero, and this is perfect code for copying values in.
> 0xffffffff81b69b94 <setup_node_bootmem+365>: mov %ebx,%edi
> 0xffffffff81b69b96 <setup_node_bootmem+367>:
> mov -0x7e4cb750(,%rdx,8),%rax
>
> which is somewhere around line 224 in arch/x86/mm/numa_64.c
>
> if (nid != nodeid)
> printk(KERN_INFO " NODE_DATA(%d) on node %d\n",
> nodeid, nid);
Can you make sure that 419db274bed4269f475a8e78cbe9c917192cfe8b is in? That
is the patch that fixed this issue last time.
However .. the more I look at the code the less it seems to be that and
that is the last fix in that file.
Do you see any messages about 'Cannot find 20 bytes in node X' (where X
I think is 0)?
next prev parent reply other threads:[~2011-01-07 21:23 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-07 20:34 Crash on boot with 2.6.37-rc8-git3 M A Young
2011-01-07 21:23 ` Konrad Rzeszutek Wilk [this message]
2011-01-08 0:10 ` M A Young
2011-01-10 18:42 ` Konrad Rzeszutek Wilk
2011-01-10 21:43 ` M A Young
2011-01-16 20:48 ` M A Young
2011-01-16 20:56 ` Keir Fraser
2011-01-18 0:52 ` M A Young
2011-01-19 22:54 ` M A Young
2011-01-20 19:24 ` Konrad Rzeszutek Wilk
2011-01-20 22:39 ` M A Young
2011-01-21 15:27 ` Konrad Rzeszutek Wilk
2011-01-21 21:43 ` M A Young
2011-01-24 14:14 ` Konrad Rzeszutek Wilk
2011-01-24 23:12 ` M A Young
2011-01-25 12:03 ` Stefano Stabellini
2011-01-25 13:24 ` Ian Campbell
2011-01-25 13:31 ` Stefano Stabellini
2011-01-25 13:45 ` Ian Campbell
2011-01-25 15:19 ` Stefano Stabellini
2011-01-25 15:52 ` Konrad Rzeszutek Wilk
2011-01-25 15:56 ` Stefano Stabellini
2011-01-25 16:05 ` M A Young
2011-01-24 19:04 ` Stefano Stabellini
2011-01-25 0:22 ` M A Young
-- strict thread matches above, loose matches on Subject: below --
2011-01-04 22:01 M A Young
2011-01-05 15:43 ` Konrad Rzeszutek Wilk
2011-01-05 23:11 ` M A Young
2011-01-06 14:56 ` Konrad Rzeszutek Wilk
2011-01-07 0:37 ` M A Young
2011-01-07 19:18 ` Konrad Rzeszutek Wilk
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=20110107212359.GA22976@dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=m.a.young@durham.ac.uk \
--cc=xen-devel@lists.xensource.com \
/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;
as well as URLs for NNTP newsgroup(s).