From: Zefan Li <lizefan@huawei.com>
To: Ming Lei <tom.leiming@gmail.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Tejun Heo <tj@kernel.org>
Subject: Re: 4.0.0-rc1-next-20150303: cgroup: BUG: unable to handle kernel NULL pointer dereference at
Date: Wed, 4 Mar 2015 16:08:35 +0800 [thread overview]
Message-ID: <54F6BD83.5000202@huawei.com> (raw)
In-Reply-To: <CACVXFVO3K0G=_MO5kSrwoP3dEZ-yKX+e2VaPdX3VisqY90ttug@mail.gmail.com>
Caused by this commit:
295458e67284f57d1 cgroup: call cgroup_subsys->bind on cgroup subsys initialization
cpuset_init() is called after cgroup_init(), so when cgroup_init() calls cpuset_bind()
top_cpuset.cpus_allowed is NULL.
I'll send out a fix soon.
On 2015/3/4 13:17, Ming Lei wrote:
> Hi Guys,
>
> [ 0.014166] BUG: unable to handle kernel NULL pointer dereference
> at (null)^M
> [ 0.014920] IP: [<ffffffff810ab011>] cpumask_copy+0x17/0x1a^M
> [ 0.015000] PGD 0 ^M
> [ 0.015000] Oops: 0002 [#1] PREEMPT SMP DEBUG_PAGEALLOC ^M
> [ 0.015000] Dumping ftrace buffer:^M
> [ 0.015000] (ftrace buffer empty)^M
> [ 0.015000] Modules linked in:^M
> [ 0.015000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted
> 4.0.0-rc1-next-20150303 #123^M
> [ 0.015000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
> BIOS Bochs 01/01/2011^M
> [ 0.015000] task: ffffffff81a10460 ti: ffffffff81a00000 task.ti:
> ffffffff81a00000^M
> [ 0.015000] RIP: 0010:[<ffffffff810ab011>] [<ffffffff810ab011>]
> cpumask_copy+0x17/0x1a^M
> [ 0.015000] RSP: 0000:ffffffff81a03f00 EFLAGS: 00010002^M
> [ 0.015000] RAX: ffffffff81e7aa80 RBX: ffffffff81a96060 RCX:
> 0000000000000008^M
> [ 0.015000] RDX: ffffffff81a96000 RSI: ffffffff81b19f10 RDI:
> 0000000000000000^M
> [ 0.015000] RBP: ffffffff81a03f18 R08: 00000000000000d0 R09:
> ffff880235138120^M
> [ 0.015000] R10: 0000000000000000 R11: 0000000000017078 R12:
> ffffffff81a94dc0^M
> [ 0.015000] R13: ffffffff81e7aba0 R14: 0000000000000000 R15:
> 0000000000000000^M
> [ 0.015000] FS: 0000000000000000(0000) GS:ffff88023ec00000(0000)
> knlGS:0000000000000000^M
> [ 0.015000] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b^M
> [ 0.015000] CR2: 0000000000000000 CR3: 0000000001a0b000 CR4:
> 00000000000006b0^M
> [ 0.015000] Stack:^M
> [ 0.015000] ffffffff810ab202 ffffffff81a96000 ffffffff81a952d0
> ffffffff81a03f68^M
> [ 0.015000] ffffffff81b557ae 0000000000000000 ffffffff81a95fa0
> ffffffffffffffff^M
> [ 0.015000] ffffffffffffffff ffffffff81bc88d0 ffff88023efa4480
> ffffffff81bd02c0^M
> [ 0.015000] Call Trace:^M
> [ 0.015000] [<ffffffff810ab202>] ? cpuset_bind+0x50/0x99^M
> [ 0.015000] [<ffffffff81b557ae>] cgroup_init+0x1ef/0x27b^M
> [ 0.015000] [<ffffffff81b39e7f>] start_kernel+0x3fa/0x43f^M
> [ 0.015000] [<ffffffff81b3987d>] ? set_init_arg+0x55/0x55^M
> [ 0.015000] [<ffffffff81b39489>] x86_64_start_reservations+0x2a/0x2c^M
> [ 0.015000] [<ffffffff81b3958d>] x86_64_start_kernel+0x102/0x106^M
> [ 0.015000] Code: 15 29 04 a7 00 48 89 e5 e8 3b 4d 20 00 85 c0 0f
> 95 c0 5d c3 8b 0d 14 04 a7 00 55 48 89 e5 5d 48 83 c1 3f 48 c1 e9 06
> 48 c1 e1 03 <f3> a4 c3 55 8b 35 f9 03 a7 00 48 89 e5 e8 7f 4c 20 00 85
> c0 0f ^M
> [ 0.015000] RIP [<ffffffff810ab011>] cpumask_copy+0x17/0x1a^M
> [ 0.015000] RSP <ffffffff81a03f00>^M
> [ 0.015000] CR2: 0000000000000000^M
> [ 0.015000] ---[ end trace 15a4fd3fb5107ec6 ]---^M
> [ 0.015000] Kernel panic - not syncing: Attempted to kill the idle task!^M
> [ 0.015000] Dumping ftrace buffer:^M
> [ 0.015000] (ftrace buffer empty)^M
>
>
> Thanks,
> Ming Lei
> .
>
prev parent reply other threads:[~2015-03-04 8:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-04 5:17 4.0.0-rc1-next-20150303: cgroup: BUG: unable to handle kernel NULL pointer dereference at Ming Lei
2015-03-04 8:08 ` Zefan Li [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=54F6BD83.5000202@huawei.com \
--to=lizefan@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
--cc=tom.leiming@gmail.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 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.