[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140205072145.GA9379@localhost>
Date: Wed, 5 Feb 2014 15:21:45 +0800
From: Fengguang Wu <fengguang.wu@...el.com>
To: Tejun Heo <tj@...nel.org>
Cc: linux-kernel@...r.kernel.org, Cgroups <cgroups@...r.kernel.org>
Subject: [cgroup] BUG: unable to handle kernel NULL pointer dereference at
0000000000000068
Greetings,
I got the below dmesg and the first bad commit is
git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git review-post-kernfs-conversion-1
commit 2d461616cd3de5d61b79ce02bd01c6d4cd1cc5ed
Author: Tejun Heo <tj@...nel.org>
AuthorDate: Wed Jan 29 16:46:20 2014 -0500
Commit: Tejun Heo <tj@...nel.org>
CommitDate: Wed Jan 29 16:46:20 2014 -0500
cgroup: make cgroup_subsys->base_cftypes use cgroup_add_cftypes()
Currently, cgroup_subsys->base_cftypes registration is different from
dynamic cftypes registartion. Instead of going through
cgroup_add_cftypes(), cgroup_init_subsys() invokes
cgroup_init_cftsets() which makes use of cgroup_subsys->base_cftset
which doesn't involve dynamic allocation.
While avoiding dynamic allocation is somewhat nice, having two
separate paths for cftypes registration is nasty, especially as we're
planning to add more operations during cftypes registration.
This patch drops cgroup_init_cftsets() and cgroup_subsys->base_cftset
and registers base_cftypes using cgroup_add_cftypes(). This is done
as a separate step in cgroup_init() instead of a part of
cgroup_init_subsys(). This is because cgroup_init_subsys() can be
called very early during boot when kmalloc() isn't available yet.
Signed-off-by: Tejun Heo <tj@...nel.org>
+---------------------------------------------------------+----+
| | |
+---------------------------------------------------------+----+
| boot_successes | 0 |
| boot_failures | 19 |
| BUG:unable_to_handle_kernel_NULL_pointer_dereference_at | 19 |
| Oops | 19 |
| RIP:cgroup_apply_cftypes | 19 |
| Kernel_panic-not_syncing:Fatal_exception | 19 |
+---------------------------------------------------------+----+
[ 0.008000] pid_max: default: 32768 minimum: 301
[ 0.008000] Security Framework initialized
[ 0.008000] Mount-cache hash table entries: 256
[ 0.008164] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 0.009372] IP: [<ffffffff810cf011>] cgroup_apply_cftypes+0x31/0xf0
[ 0.010467] PGD 0
[ 0.011042] Oops: 0000 [#1]
[ 0.011700] Modules linked in:
[ 0.012000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.14.0-rc1-wl-00887-g3bc3f27 #3
[ 0.012000] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 0.012000] task: ffffffff81e14480 ti: ffffffff81e00000 task.ti: ffffffff81e00000
[ 0.012000] RIP: 0010:[<ffffffff810cf011>] [<ffffffff810cf011>] cgroup_apply_cftypes+0x31/0xf0
[ 0.012000] RSP: 0000:ffffffff81e01ec0 EFLAGS: 00010286
[ 0.012000] RAX: ffffffff81e01ec8 RBX: 0000000000000000 RCX: ffff88000e40c480
[ 0.012000] RDX: ffffffff8213d300 RSI: 0000000000000001 RDI: ffffffff8213d2a0
[ 0.012000] RBP: ffffffff81e01f00 R08: 0000000000000000 R09: 0000000000001000
[ 0.012000] R10: ffffffff810cc3f0 R11: 0000000000000000 R12: ffffffff81e3fdd0
[ 0.012000] R13: ffffffff8213d2a0 R14: 0000000000000001 R15: ffffffff81e01fb0
[ 0.012000] FS: 0000000000000000(0000) GS:ffffffff81e1e000(0000) knlGS:0000000000000000
[ 0.012000] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 0.012000] CR2: 0000000000000068 CR3: 0000000001e0f000 CR4: 00000000000006b0
[ 0.012000] Stack:
[ 0.012000] 000000018113c756 ffffffff81e01ec8 ffffffff81e01ec8 ffffffff8213d2a0
[ 0.012000] ffffffff81e3fdd0 ffff88000fff82c0 ffffffff8206d2c0 ffffffff81e01fb0
[ 0.012000] ffffffff81e01f20 ffffffff810cf196 0000000000000000 ffffffff81e3fd60
[ 0.012000] Call Trace:
[ 0.012000] [<ffffffff810cf196>] cgroup_add_cftypes+0x56/0x90
[ 0.012000] [<ffffffff81fdd3c8>] cgroup_init+0x70/0x239
[ 0.012000] [<ffffffff81fc7f17>] start_kernel+0x412/0x43c
[ 0.012000] [<ffffffff81fc790e>] ? repair_env_string+0x5c/0x5c
[ 0.012000] [<ffffffff81fc7120>] ? early_idt_handlers+0x120/0x120
[ 0.012000] [<ffffffff81fc75c0>] x86_64_start_reservations+0x2a/0x2c
[ 0.012000] [<ffffffff81fc7700>] x86_64_start_kernel+0x13e/0x14d
[ 0.012000] Code: 48 89 e5 41 57 48 8d 45 c8 41 56 41 55 49 89 fd 41 54 53 48 83 ec 18 48 8b 5f 58 89 75 c4 48 89 45 c8 44 0f b6 75 c4 48 89 45 d0 <4c> 8b 63 68 49 81 fc 20 07 16 82 0f 84 8e 00 00 00 48 85 db 0f
[ 0.012000] RIP [<ffffffff810cf011>] cgroup_apply_cftypes+0x31/0xf0
[ 0.012000] RSP <ffffffff81e01ec0>
[ 0.012000] CR2: 0000000000000068
[ 0.012000] ---[ end trace c3502da6cd6e4f80 ]---
[ 0.012000] Kernel panic - not syncing: Fatal exception
git bisect start 3bc3f27410c2de9520093f707a16b3bb44a6bcc1 38dbfb59d1175ef458d006556061adeaa8751b72 --
git bisect good 216dac38b2a848083c024b0610448a9f0a8ac3bb # 15:40 20+ 0 Merge 'cortex/master' into devel-hourly-2014020405
git bisect bad 274d9cacd8e9eb2489bb0ddadc8ee6d872484406 # 16:12 0- 3 Merge 'spi/for-next' into devel-hourly-2014020405
git bisect bad 7e84a965747573f925ad85e21c5e6f979591b5d6 # 16:33 0- 3 Merge 'cgroup/for-next' into devel-hourly-2014020405
git bisect bad 68d085ec854eb41cd439d31e17b7b5cec76fd27f # 17:26 0- 2 Merge 'spi/topic/sirf' into devel-hourly-2014020405
git bisect bad ed46d50a525707adf694192735f1afca66860954 # 17:49 0- 5 Merge 'watchdog-next/master' into devel-hourly-2014020405
git bisect bad 607b1fa0fc3ec73a000f7a4ee0b55688ed0cf068 # 18:24 0- 4 Merge 'cgroup/review-kernfs-conversion-1' into devel-hourly-2014020405
git bisect good 6ad008c30659c450575b830ad6ab91dcf86cc739 # 19:28 20+ 0 cgroup: update cgroup name handling
git bisect bad ba6d951a49590f5c81ec4eabc5f0420ae87e7a73 # 20:16 0- 2 cgroup: introduce cgroup_ino()
git bisect bad eb7cf7ecc120d0781f31cbed8be60b390a91a652 # 20:58 0- 2 cgroup: update the meaning of cftype->max_write_len
git bisect bad 2d461616cd3de5d61b79ce02bd01c6d4cd1cc5ed # 21:09 0- 20 cgroup: make cgroup_subsys->base_cftypes use cgroup_add_cftypes()
# first bad commit: [2d461616cd3de5d61b79ce02bd01c6d4cd1cc5ed] cgroup: make cgroup_subsys->base_cftypes use cgroup_add_cftypes()
git bisect good 6ad008c30659c450575b830ad6ab91dcf86cc739 # 21:11 60+ 0 cgroup: update cgroup name handling
git bisect bad 3bc3f27410c2de9520093f707a16b3bb44a6bcc1 # 21:11 0- 19 0day head guard for 'devel-hourly-2014020405'
git bisect good 38dbfb59d1175ef458d006556061adeaa8751b72 # 21:13 60+ 0 Linus 3.14-rc1
git bisect good cdd263faccc2184e685573968dae5dd34758e322 # 21:45 60+ 0 Add linux-next specific files for 20140204
Thanks,
Fengguang
View attachment "dmesg-quantal-roam-16:20140204092603:x86_64-randconfig-s1-02040905:3.14.0-rc1-wl-00887-g3bc3f27:3" of type "text/plain" (23958 bytes)
View attachment "config-3.14.0-rc1-wl-00887-g3bc3f27" of type "text/plain" (86228 bytes)
Powered by blists - more mailing lists