From: Gonglei <arei.gonglei@huawei.com>
To: Igor Mammedov <imammedo@redhat.com>
Cc: Christoph Lameter <cl@linux.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"vdavydov@parallels.com" <vdavydov@parallels.com>,
"rientjes@google.com" <rientjes@google.com>,
Lizefan <lizefan@huawei.com>,
"lqymgt@gmail.com" <lqymgt@gmail.com>,
"paulus@samba.org" <paulus@samba.org>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"mingo@kernel.org" <mingo@kernel.org>, "bp@suse.de" <bp@suse.de>,
"boris.ostrovsky@oracle.com" <boris.ostrovsky@oracle.com>
Subject: Re: [BUG?] kernel OOPS at kmem_cache_alloc_node() because of smp_processor_id()
Date: Fri, 16 Oct 2015 16:56:14 +0800 [thread overview]
Message-ID: <5620BBAE.1030800@huawei.com> (raw)
In-Reply-To: <20151016100858.68441f5c@nial.brq.redhat.com>
On 2015/10/16 16:08, Igor Mammedov wrote:
> On Fri, 16 Oct 2015 11:49:36 +0800
> Gonglei <arei.gonglei@huawei.com> wrote:
>
>> On 2015/10/15 22:39, Christoph Lameter wrote:
>>> On Thu, 15 Oct 2015, Gonglei (Arei) wrote:
>>>
>>>> [ 0.016000] Call Trace:
>>>> [ 0.016000] [<ffffffff810061dc>] dump_trace+0x6c/0x2d0
>>>> [ 0.016000] [<ffffffff81394288>] dump_stack+0x69/0x71
>>>> [ 0.016000] [<ffffffff81394308>] panic+0x78/0x199
>>>> [ 0.016000] [<ffffffff81050fff>] do_exit+0x26f/0x360
>>>> [ 0.016000] [<ffffffff813980a1>] oops_end+0xe1/0xf0
>>>> [ 0.016000] [<ffffffff8102d955>] __bad_area_nosemaphore+0x155/0x230
>>>> [ 0.016000] [<ffffffff813972ef>] page_fault+0x1f/0x30
>>>> [ 0.016000] [<ffffffff810ed93f>] kmem_cache_alloc_node+0xbf/0x140
>>>> [ 0.016000] [<ffffffff811dc176>] alloc_cpumask_var_node+0x16/0x70
>>>> [ 0.016000] [<ffffffff81019888>] native_send_call_func_ipi+0x18/0xf0
>>>> [ 0.016000] [<ffffffff810783ee>] smp_call_function_many+0x1ae/0x250
>>>> [ 0.016000] [<ffffffff810784b0>] smp_call_function+0x20/0x30
>>>> [ 0.016000] [<ffffffff8101580a>] set_mtrr+0x5a/0x140
>>>> [ 0.016000] [<ffffffff8138ef17>] smp_callin+0xf0/0x1b4
>>>> [ 0.016000] [<ffffffff8138efe9>] start_secondary+0xe/0xb5
>>>
>>> This happened during IPI processing?
>>>
>>>> crash> p cache_cache
>>>
>>> Arg. This is the SLAB allocator. You cannot enable debugging without
>>> rebuilding the kernel with CONFIG_SLAB_DEBUG.
>>>
>>>> smp_processor_id() return 14, the CPU14, but the CPU14 is *stuck*, so cache=
>>>> p->array[14] is NULL,
>>>> why did this situation happen? And cause NULL pointer accessing? Is this a =
>>>> kernel bug?
>>>
>>> Its likely a bug in some obscure code in a driver that corrupted memory or
>>> messed up the way memory was handled. set_mtrr()? What was going on at the
>>> time? A special graphics driver being loaded? That could cause issues.
>>>
>>
>> It seems that the problem was fixed by Igor, right?
>> https://lkml.org/lkml/2014/3/6/257
> That might help.
> "stuck" CPU14 means that master CPU has given up on the attempt
> to online AP and tried to clean it up from different maps
> *but* AP is still running and that may lead to an unexpected
> behavior.
>
IIUC, this might be a sequence problem between BP processing and AP processing?
Regards,
-Gonglei
>>
>> Cced Igor Mammedov.
>>
>> Regards,
>> -Gonglei
>>
>
prev parent reply other threads:[~2015-10-16 8:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-15 12:16 [BUG?] kernel OOPS at kmem_cache_alloc_node() because of smp_processor_id() Gonglei (Arei)
2015-10-15 13:48 ` Christoph Lameter
2015-10-15 14:26 ` Gonglei
2015-10-15 14:39 ` Christoph Lameter
2015-10-16 3:49 ` Gonglei
2015-10-16 8:08 ` Igor Mammedov
2015-10-16 8:56 ` Gonglei [this message]
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=5620BBAE.1030800@huawei.com \
--to=arei.gonglei@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=boris.ostrovsky@oracle.com \
--cc=bp@suse.de \
--cc=cl@linux.com \
--cc=imammedo@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=lqymgt@gmail.com \
--cc=mingo@kernel.org \
--cc=paulus@samba.org \
--cc=rientjes@google.com \
--cc=tglx@linutronix.de \
--cc=vdavydov@parallels.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