Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756290AbYBSMET (ORCPT ); Tue, 19 Feb 2008 07:04:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752189AbYBSMEM (ORCPT ); Tue, 19 Feb 2008 07:04:12 -0500 Received: from mailhub.sw.ru ([195.214.232.25]:23370 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752137AbYBSMEK (ORCPT ); Tue, 19 Feb 2008 07:04:10 -0500 Date: Tue, 19 Feb 2008 15:03:52 +0300 From: Alexey Dobriyan To: Kay Sievers Cc: Andrew Morton , linux-kernel@vger.kernel.org, Greg KH Subject: Re: 2.6.25-rc1-sha1: WARNING: at lib/kref.c:43 kref_get+0x20/0x30() Message-ID: <20080219120352.GA8367@localhost.sw.ru> References: <20080215110853.GH6110@localhost.sw.ru> <20080218045925.40fc5ddb.akpm@linux-foundation.org> <3ae72650802190019u76857e61n4ee543d33fd3c5fc@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ae72650802190019u76857e61n4ee543d33fd3c5fc@mail.gmail.com> User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 9231 Lines: 197 On Tue, Feb 19, 2008 at 09:19:25AM +0100, Kay Sievers wrote: > On Feb 18, 2008 1:59 PM, Andrew Morton wrote: > > On Fri, 15 Feb 2008 14:08:53 +0300 Alexey Dobriyan wrote: > > > > > Booting without SYSFS fills dmesg like this > > > > Does the system normally boot without sysfs? Surprised. > > > > > > > ------------[ cut here ]------------ > > > WARNING: at lib/kref.c:43 kref_get+0x20/0x30() > > > Modules linked in: loop(+) > > > Pid: 994, comm: modprobe Tainted: G M 2.6.25-rc1 #6 > > > > > > Call Trace: > > > [] warn_on_slowpath+0x64/0x90 > > > [] init_object+0x88/0xa0 > > > [] __slab_alloc+0xbe/0x550 > > > [] kvasprintf+0x58/0x90 > > > [] vsnprintf+0x33c/0x6e0 > > > [] kvasprintf+0x71/0x90 > > > [] hrtick_set+0x77/0x140 > > > [] kref_get+0x20/0x30 > > > [] kobject_get+0x12/0x20 > > > [] kobject_add_internal+0x49/0xf0 > > > [] kobject_add_varg+0x73/0x80 > > > [] kobject_add+0x54/0x80 > > > [] check_object+0x103/0x230 > > > [] init_object+0x88/0xa0 > > > [] kobject_create+0x14/0x40 > > > [] kmem_cache_alloc+0xd3/0xe0 > > > [] kobject_init+0x34/0xb0 > > > [] kobject_create+0x2b/0x40 > > > [] kobject_create_and_add+0x3c/0x80 > > > [] load_module+0x1847/0x1970 > > > [] alloc_pages_current+0x0/0x90 > > > [] sys_init_module+0x62/0x1a0 > > > > > > > Is this a regression? > > Alexey, > do you always see these messages with every modprobe of a module? Yep. > Can you enable CONFIG_DEBUG_KOBJECT=y? It might give a hint where we > miss to initialization of a kobject when sysfs is not compiled in. It looks like this: kobject: 'button' (ffff81017f307248): kobject_uevent_env kobject: 'button' (ffff81017f307248): fill_kobj_path: path = '/bus/acpi/drivers/button' ------------[ cut here ]------------ WARNING: at lib/kref.c:43 kref_get+0x2d/0x30() Modules linked in: battery(+) button dock thermal processor sbs ac sbshc af_packet loop Pid: 1642, comm: modprobe Not tainted 2.6.25-rc2 #2 Call Trace: [] warn_on_slowpath+0x5f/0x80 [] ? mark_held_locks+0x56/0xa0 [] ? __slab_alloc+0xc0/0x4b0 [] ? trace_hardirqs_on+0xbf/0x150 [] ? kvasprintf+0x57/0x90 [] ? vsnprintf+0x328/0x6e0 [] ? kvasprintf+0x70/0x90 [] kref_get+0x2d/0x30 [] kobject_get+0x1a/0x30 [] kobject_add_internal+0x59/0x160 [] kobject_add_varg+0x6e/0x80 [] kobject_add+0x69/0x90 [] ? trace_hardirqs_on+0xbf/0x150 [] ? kref_init+0xe/0x10 [] ? kobject_init+0x37/0xa0 [] ? kobject_create+0x33/0x40 [] kobject_create_and_add+0x3e/0x80 [] sys_init_module+0x19df/0x1b30 [] ? __lock_acquire+0x748/0x10b0 [] ? acpi_bus_register_driver+0x0/0x40 [] ? trace_hardirqs_on+0xbf/0x150 [] ? trace_hardirqs_on_thunk+0x35/0x3a [] system_call_after_swapgs+0x7b/0x80 ---[ end trace 033c2b23880cf02a ]--- kobject: 'notes' (ffff81017ec370a8): kobject_add_internal: parent: '', set: '' kobject: 'battery' (ffff81017f382db0): kobject_add_internal: parent: 'drivers', set: 'drivers' kobject: 'battery' (ffff81017f382db0): kobject_uevent_env kobject: 'battery' (ffff81017f382db0): fill_kobj_path: path = '/bus/acpi/drivers/battery' ------------[ cut here ]------------ WARNING: at lib/kref.c:43 kref_get+0x2d/0x30() Modules linked in: bay(+) battery button dock thermal processor sbs ac sbshc af_packet loop Pid: 1650, comm: modprobe Not tainted 2.6.25-rc2 #2 Call Trace: [] warn_on_slowpath+0x5f/0x80 [] ? mark_held_locks+0x56/0xa0 [] ? __slab_alloc+0xc0/0x4b0 [] ? trace_hardirqs_on+0xbf/0x150 [] ? kvasprintf+0x57/0x90 [] ? vsnprintf+0x328/0x6e0 [] ? kvasprintf+0x70/0x90 [] kref_get+0x2d/0x30 [] kobject_get+0x1a/0x30 [] kobject_add_internal+0x59/0x160 [] kobject_add_varg+0x6e/0x80 [] kobject_add+0x69/0x90 [] ? trace_hardirqs_on+0xbf/0x150 [] ? kref_init+0xe/0x10 [] ? kobject_init+0x37/0xa0 [] ? kobject_create+0x33/0x40 [] kobject_create_and_add+0x3e/0x80 [] sys_init_module+0x19df/0x1b30 [] ? __lock_acquire+0x748/0x10b0 [] ? device_remove_file+0x0/0x10 [] ? trace_hardirqs_on+0xbf/0x150 [] ? trace_hardirqs_on_thunk+0x35/0x3a [] system_call_after_swapgs+0x7b/0x80 ---[ end trace 033c2b23880cf02a ]--- kobject: 'notes' (ffff81017ec371f8): kobject_add_internal: parent: '', set: '' kobject: '' (ffffffff88031350): kobject_cleanup ------------[ cut here ]------------ WARNING: at lib/kref.c:43 kref_get+0x2d/0x30() Modules linked in: fan(+) battery button dock thermal processor sbs ac sbshc af_packet loop Pid: 1659, comm: modprobe Not tainted 2.6.25-rc2 #2 Call Trace: [] warn_on_slowpath+0x5f/0x80 [] ? mark_held_locks+0x56/0xa0 [] ? __slab_alloc+0xc0/0x4b0 [] ? trace_hardirqs_on+0xbf/0x150 [] ? kvasprintf+0x57/0x90 [] ? vsnprintf+0x328/0x6e0 [] ? kvasprintf+0x70/0x90 [] kref_get+0x2d/0x30 [] kobject_get+0x1a/0x30 [] kobject_add_internal+0x59/0x160 [] kobject_add_varg+0x6e/0x80 [] kobject_add+0x69/0x90 [] ? trace_hardirqs_on+0xbf/0x150 [] ? kref_init+0xe/0x10 [] ? kobject_init+0x37/0xa0 [] ? kobject_create+0x33/0x40 [] kobject_create_and_add+0x3e/0x80 [] sys_init_module+0x19df/0x1b30 [] ? __lock_acquire+0x748/0x10b0 [] ? acpi_bus_register_driver+0x0/0x40 [] ? trace_hardirqs_on+0xbf/0x150 [] ? trace_hardirqs_on_thunk+0x35/0x3a [] system_call_after_swapgs+0x7b/0x80 ---[ end trace 033c2b23880cf02a ]--- kobject: 'notes' (ffff81017ec372a0): kobject_add_internal: parent: '', set: '' kobject: 'fan' (ffff81017f307db0): kobject_add_internal: parent: 'drivers', set: 'drivers' kobject: 'fan' (ffff81017f307db0): kobject_uevent_env kobject: 'fan' (ffff81017f307db0): fill_kobj_path: path = '/bus/acpi/drivers/fan' ------------[ cut here ]------------ WARNING: at lib/kref.c:43 kref_get+0x2d/0x30() Modules linked in: container(+) fan battery button dock thermal processor sbs ac sbshc af_packet loop Pid: 1667, comm: modprobe Not tainted 2.6.25-rc2 #2 Call Trace: [] warn_on_slowpath+0x5f/0x80 [] ? mark_held_locks+0x56/0xa0 [] ? __slab_alloc+0xc0/0x4b0 [] ? trace_hardirqs_on+0xbf/0x150 [] ? kvasprintf+0x57/0x90 [] ? vsnprintf+0x328/0x6e0 [] ? kvasprintf+0x70/0x90 [] kref_get+0x2d/0x30 [] kobject_get+0x1a/0x30 [] kobject_add_internal+0x59/0x160 [] kobject_add_varg+0x6e/0x80 [] kobject_add+0x69/0x90 [] ? trace_hardirqs_on+0xbf/0x150 [] ? kref_init+0xe/0x10 [] ? kobject_init+0x37/0xa0 [] ? kobject_create+0x33/0x40 [] kobject_create_and_add+0x3e/0x80 [] sys_init_module+0x19df/0x1b30 [] ? __lock_acquire+0x748/0x10b0 [] ? acpi_bus_register_driver+0x0/0x40 [] ? trace_hardirqs_on+0xbf/0x150 [] ? trace_hardirqs_on_thunk+0x35/0x3a [] system_call_after_swapgs+0x7b/0x80 ---[ end trace 033c2b23880cf02a ]--- kobject: 'notes' (ffff81017ec37498): kobject_add_internal: parent: '', set: '' kobject: 'container' (ffff81017f307000): kobject_add_internal: parent: 'drivers', set: 'drivers' kobject: 'container' (ffff81017f307000): kobject_uevent_env kobject: 'container' (ffff81017f307000): fill_kobj_path: path = '/bus/acpi/drivers/container' -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/