Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758553AbYHNPvN (ORCPT ); Thu, 14 Aug 2008 11:51:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752672AbYHNPu5 (ORCPT ); Thu, 14 Aug 2008 11:50:57 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:54779 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757792AbYHNPuz (ORCPT ); Thu, 14 Aug 2008 11:50:55 -0400 From: "Rafael J. Wysocki" To: Mark Langsdorf , Andi Kleen Subject: Re: Warning in during hotplug on 2.6.27-rc2-git5 Date: Thu, 14 Aug 2008 17:53:57 +0200 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) Cc: linux-kernel@vger.kernel.org, Greg KH , Ingo Molnar , Andrew Morton References: <200808121700.20369.mark.langsdorf@amd.com> In-Reply-To: <200808121700.20369.mark.langsdorf@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808141753.58547.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7154 Lines: 134 On Wednesday, 13 of August 2008, Mark Langsdorf wrote: > I'm seeing the following error message when I hotunplug and replug > a cpu in 2.6.27-rc2-git5. The system becomes unstable almost > immediately afterwards. Hm, it seems that MCE is involved somehow. Andi, can you have a look at this, please? > ------------[ cut here ]------------ > WARNING: at fs/sysfs/dir.c:463 sysfs_add_one+0x33/0x39() > sysfs: duplicate filename 'machinecheck4' can not be created > Modules linked in: cpufreq_ondemand cpufreq_userspace cpufreq_powersave powernow_k8 freq_table sr_mod af_packet button battery ac loop dm_mod usb_storage usbhid ff_memless tg3 libphy ide_pci_generic shpchp ehci_hcd i2c_piix4 i2c_core pci_hotplug ohci_hcd usbcore ide_cd_mod cdrom floppy mptctl ext3 jbd edd fan thermal processor mptsas mptscsih mptbase scsi_transport_sas sg sata_svw libata dock serverworks sd_mod scsi_mod ide_disk ide_core > Pid: 4838, comm: bash Not tainted 2.6.27-rc2-git5-pn_test #2 > > Call Trace: > [] warn_slowpath+0xb4/0xde > [] rb_insert_color+0x61/0xda > [] rb_insert_color+0x61/0xda > [] vsnprintf+0x568/0x5b1 > [] hrtick_start_fair+0x10d/0x171 > [] idr_get_empty_slot+0x164/0x243 > [] ida_get_new_above+0xf6/0x182 > [] find_inode+0x28/0x6d > [] sysfs_ilookup_test+0x0/0xf > [] sysfs_find_dirent+0x1b/0x2f > [] sysfs_add_one+0x33/0x39 > [] create_dir+0x4f/0x87 > [] sysfs_create_dir+0x35/0x4a > [] kobject_get+0x12/0x17 > [] kobject_add_internal+0xcf/0x18a > [] kobject_init_and_add+0x5b/0x68 > [] set_cpus_allowed_ptr+0x119/0x126 > [] sysdev_register+0x5a/0xb5 > [] mce_create_device+0xb4/0x156 > [] mce_cpu_callback+0x2b/0x9b > [] notifier_call_chain+0x29/0x4c > [] _cpu_up+0xc8/0x102 > [] cpu_up+0x54/0x77 > [] store_online+0x43/0x67 > [] sysfs_write_file+0xd2/0x110 > [] vfs_write+0xad/0x156 > [] sys_write+0x45/0x6e > [] system_call_fastpath+0x16/0x1b > > ---[ end trace 48036b92036180e0 ]--- > kobject_add_internal failed for machinecheck4 with -EEXIST, don't try to register things with the same name in the same directory. > Pid: 4838, comm: bash Tainted: G W 2.6.27-rc2-git5-pn_test #2 > > Call Trace: > [] kobject_add_internal+0x14b/0x18a > [] kobject_init_and_add+0x5b/0x68 > [] set_cpus_allowed_ptr+0x119/0x126 > [] sysdev_register+0x5a/0xb5 > [] mce_create_device+0xb4/0x156 > [] mce_cpu_callback+0x2b/0x9b > [] notifier_call_chain+0x29/0x4c > [] _cpu_up+0xc8/0x102 > [] cpu_up+0x54/0x77 > [] store_online+0x43/0x67 > [] sysfs_write_file+0xd2/0x110 > [] vfs_write+0xad/0x156 > [] sys_write+0x45/0x6e > [] system_call_fastpath+0x16/0x1b > > BUG: unable to handle kernel NULL pointer dereference at 0000000000000038 > IP: [] sysfs_addrm_start+0x2d/0x99 > PGD 22a87c067 PUD 22c9ef067 PMD 0 > Oops: 0000 [1] SMP > CPU 1 > Modules linked in: cpufreq_ondemand cpufreq_userspace cpufreq_powersave powernow_k8 freq_table sr_mod af_packet button battery ac loop dm_mod usb_storage usbhid ff_memless tg3 libphy ide_pci_generic shpchp ehci_hcd i2c_piix4 i2c_core pci_hotplug ohci_hcd usbcore ide_cd_mod cdrom floppy mptctl ext3 jbd edd fan thermal processor mptsas mptscsih mptbase scsi_transport_sas sg sata_svw libata dock serverworks sd_mod scsi_mod ide_disk ide_core > Pid: 4838, comm: bash Tainted: G W 2.6.27-rc2-git5-pn_test #2 > RIP: 0010:[] [] sysfs_addrm_start+0x2d/0x99 > RSP: 0018:ffff88022d0dbb38 EFLAGS: 00010246 > RAX: ffff880028047710 RBX: 0000000000000000 RCX: 0000000000000000 > RDX: 00000acb2c4dfcc0 RSI: 0000000000000000 RDI: ffff88022fc3b000 > RBP: ffff88022d0dbb58 R08: 0000000000000080 R09: ffff88022d0dba58 > R10: ffff880028047710 R11: 00000acb2c4dfcc0 R12: 00000000fffffff4 > R13: 0000000000000000 R14: ffff88022d0dbbb0 R15: 0000000000000004 > FS: 00007f106d7496d0(0000) GS:ffff88022f0938c0(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > CR2: 0000000000000038 CR3: 000000022c8d0000 CR4: 00000000000006e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > Process bash (pid: 4838, threadinfo ffff88022d0da000, task ffff88022d6b4d90) > Stack: 00000000fffffff4 ffff88022e3dfc80 ffff88022dc0c870 ffffffff802d2ed8 > 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > ffff88022e3dfc80 ffff88022d0dbd18 00000000fffffffe 0000000000000004 > Call Trace: > [] ? create_dir+0x44/0x87 > [] ? sysfs_create_dir+0x35/0x4a > [] ? kobject_get+0x12/0x17 > [] ? kobject_add_internal+0xcf/0x18a > [] ? kobject_add+0x74/0x7c > [] ? thread_return+0x3e/0xa3 > [] ? kobject_init_internal+0x12/0x2c > [] ? kobject_init+0x41/0x69 > [] ? kobject_create+0x2b/0x30 > [] ? kobject_create_and_add+0x2e/0x5b > [] ? threshold_create_device+0x1aa/0x32a > [] ? threshold_cpu_callback+0x5f/0x2ca > [] ? mce_create_device+0xb4/0x156 > [] ? notifier_call_chain+0x29/0x4c > [] ? _cpu_up+0xc8/0x102 > [] ? cpu_up+0x54/0x77 > [] ? store_online+0x43/0x67 > [] ? sysfs_write_file+0xd2/0x110 > [] ? vfs_write+0xad/0x156 > [] ? sys_write+0x45/0x6e > [] ? system_call_fastpath+0x16/0x1b > > > Code: c0 b9 08 00 00 00 fc 53 48 89 fd 48 89 f3 48 83 ec 08 f3 ab 48 89 75 00 48 c7 c7 e0 e7 51 80 e8 c2 9c 14 00 48 8b 3d 57 45 37 00 <48> 8b 73 38 48 89 d9 48 c7 c2 2c 27 2d 80 e8 1e db fc ff 48 85 > RIP [] sysfs_addrm_start+0x2d/0x99 > RSP > CR2: 0000000000000038 > ---[ end trace 48036b92036180e0 ]--- > > > > -- > 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/ > > -- 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/