From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756097AbaCQCLq (ORCPT ); Sun, 16 Mar 2014 22:11:46 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:49627 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755818AbaCQCLo (ORCPT ); Sun, 16 Mar 2014 22:11:44 -0400 Message-ID: <532659DB.1050709@linaro.org> Date: Mon, 17 Mar 2014 10:11:39 +0800 From: Alex Shi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Fengguang Wu CC: LKML , lkp@01.org Subject: Re: [sched/balance] BUG: unable to handle kernel paging request at ffffffff00000058 References: <20140315014643.GB19456@localhost> In-Reply-To: <20140315014643.GB19456@localhost> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/15/2014 09:46 AM, Fengguang Wu wrote: > Alex, we noticed the below changes in > > https://github.com/alexshi/power-scheduling.git single-balance > commit e1f728f230025ba2f2ed71e19b156291f53b68fe ("sched/balance: replace idle_balance") > Thanks a lot for your data! But I am wondering if the buggy commit location is right? Since the following panic looks like due to original kernel, not on my code, since I neither touched any functions on call path, nor change the struct in panic function. Could you use addr2line locate the issue line in function wq_worker_waking_up(). void wq_worker_waking_up(struct task_struct *task, int cpu) { struct worker *worker = kthread_data(task); if (!(worker->flags & WORKER_NOT_RUNNING)) { WARN_ON_ONCE(worker->pool->cpu != cpu); atomic_inc(&worker->pool->nr_running); } } > [ 3.814901] PM: Registering ACPI NVS region [mem 0x650a0000-0x65375fff] (2973696 bytes) > [ 3.816130] PM: Registering ACPI NVS region [mem 0x65df8000-0x66df7fff] (16777216 bytes) > [ 3.820540] PM: Registering ACPI NVS region [mem 0x7accf000-0x7b6fefff] (10682368 bytes) > [ 3.824649] BUG: unable to handle kernel paging request at ffffffff00000058 > [ 3.828000] IP: [] wq_worker_waking_up+0x14/0x5b > [ 3.828000] PGD 220d067 PUD 0 > [ 3.828000] Oops: 0000 [#1] SMP > [ 3.828000] Modules linked in: > [ 3.828000] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.14.0-rc6-00009-ge1f728f #1 > [ 3.828000] Hardware name: Intel Corporation BRICKLAND/BRICKLAND, BIOS BKLDSDP1.86B.0031.R01.1304221600 04/22/2013 > [ 3.828000] task: ffff8808541f8000 ti: ffff8808541e6000 task.ti: ffff8808541e6000 > [ 3.828000] RIP: 0010:[] [] wq_worker_waking_up+0x14/0x5b > [ 3.828000] RSP: 0000:ffff8808541e7cf0 EFLAGS: 00010002 > [ 3.828000] RAX: ffffffff00000000 RBX: ffff8808543b0910 RCX: ffffffff824ee1c0 > [ 3.828000] RDX: 00000005811058a8 RSI: 0000000000000001 RDI: ffff8808543b0910 > [ 3.828000] RBP: ffff8808541e7d00 R08: 000000000000064d R09: 000000000000b7f9 > [ 3.828000] R10: 0000000000000027 R11: 0000000000006bd9 R12: 0000000000000001 > [ 3.828000] R13: 0000000000013000 R14: 0000000000000001 R15: 0000000000000001 > [ 3.828000] FS: 0000000000000000(0000) GS:ffff88085f800000(0000) knlGS:0000000000000000 > [ 3.828000] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 3.828000] CR2: ffffffff00000058 CR3: 000000000220c000 CR4: 00000000001407f0 > [ 3.828000] Stack: > [ 3.828000] ffff8808543b0910 ffff88085f833000 ffff8808541e7d20 ffffffff81105a04 > [ 3.828000] ffff8808543b0910 ffff88085f833000 ffff8808541e7d68 ffffffff81108259 > [ 3.828000] 0000000000000046 ffff8808543b0f24 ffff8808543b0910 ffff88085f838560 > [ 3.828000] Call Trace: > [ 3.828000] [] ttwu_do_activate.constprop.88+0x4f/0x61 > [ 3.828000] [] try_to_wake_up+0x1f7/0x228 > [ 3.828000] [] wake_up_process+0x34/0x37 > [ 3.828000] [] wake_up_worker+0x24/0x26 > [ 3.828000] [] pwq_adjust_max_active+0x7f/0xaa > [ 3.828000] [] link_pwq+0x2f/0x4a > [ 3.828000] [] __alloc_workqueue_key+0x29c/0x459 > [ 3.828000] [] ? pm_debugfs_init+0x24/0x24 > [ 3.828000] [] pm_init+0x1e/0x7b > [ 3.828000] [] do_one_initcall+0xa4/0x13a > [ 3.828000] [] ? parse_args+0x25f/0x33d > [ 3.828000] [] kernel_init_freeable+0x1a9/0x22e > [ 3.828000] [] ? do_early_param+0x88/0x88 > [ 3.828000] [] ? rest_init+0x89/0x89 > [ 3.828000] [] kernel_init+0xe/0xdf > [ 3.828000] [] ret_from_fork+0x7c/0xb0 > [ 3.828000] [] ? rest_init+0x89/0x89 > [ 3.828000] Code: 46 40 83 60 14 df 48 83 c4 28 31 c0 5b 41 5c 41 5d 41 5e 41 5f 5d c3 0f 1f 44 00 00 55 48 89 e5 41 54 41 89 f4 53 e8 c6 53 00 00 40 58 c8 01 00 00 48 89 c3 75 36 48 8b 40 48 44 39 60 04 74 > [ 3.828000] RIP [] wq_worker_waking_up+0x14/0x5b > [ 3.828000] RSP > [ 3.828000] CR2: ffffffff00000058 > [ 3.828000] ---[ end trace 5d87af0bad79b4cd ]--- -- Thanks Alex