From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758132AbXGHVp1 (ORCPT ); Sun, 8 Jul 2007 17:45:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757215AbXGHVpT (ORCPT ); Sun, 8 Jul 2007 17:45:19 -0400 Received: from wr-out-0506.google.com ([64.233.184.225]:37647 "EHLO wr-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757111AbXGHVpR (ORCPT ); Sun, 8 Jul 2007 17:45:17 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=CAte8B3tpD4Cs0Nvczps7lm040QXzZUL8DAOv1Z6izt8UDo39XRFjhkSXvjm4xiN3llIRCNKooWaLFiacBEtKK2ieAdWOAwj0NQ42GuNDvG3ZVtVIM0dQk4uRFtzRsrpUnXw9gupw+bsj842l8f5rWkHbQD8aTtCJ98k/S86ZSc= Message-ID: <6278d2220707081445s6c5029a6la5ae0fd019176f74@mail.gmail.com> Date: Sun, 8 Jul 2007 22:45:15 +0100 From: "Daniel J Blueman" To: "Linux Kernel" Subject: [2.6.22-rc7] khubd NULL deref oops... MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org When plugging in a USB 2 mass-storage device which I've been seeing problems with, I caught a khubd oops [1]. Kernel is 2.6.22-rc7 on ia32 built with Ubuntu's 2.6.22 .config. Let me know if you need more details, Daniel --- [1] [ 4764.112000] usb 5-3: new high speed USB device using ehci_hcd and address 8 [ 4764.244000] PM: Adding info for usb:5-3 [ 4764.244000] PM: Adding info for No Bus:usbdev5.8_ep00 [ 4764.244000] usb 5-3: configuration #1 chosen from 1 choice [ 4764.244000] PM: Adding info for usb:5-3:1.0 [ 4764.244000] scsi6 : SCSI emulation for USB Mass Storage devices [ 4764.244000] PM: Adding info for No Bus:host6 [ 4764.244000] PM: Adding info for No Bus:usbdev5.8_ep81 [ 4764.244000] PM: Adding info for No Bus:usbdev5.8_ep02 [ 4764.244000] PM: Adding info for No Bus:usbdev5.8 [ 4764.244000] usb-storage: device found at 8 [ 4764.244000] usb-storage: waiting for device to settle before scanning [ 4769.244000] usb-storage: device scan complete [ 4769.244000] PM: Adding info for No Bus:target6:0:0 [ 4769.244000] scsi 6:0:0:0: Direct-Access Maxtor 6 Y120L0 0811 PQ: 0 ANSI: 0 [ 4769.244000] PM: Adding info for No Bus:target6:0:1 [ 4769.244000] PM: Removing info for No Bus:target6:0:1 [ 4769.244000] PM: Adding info for No Bus:target6:0:2 [ 4769.244000] PM: Removing info for No Bus:target6:0:2 [ 4769.244000] PM: Adding info for No Bus:target6:0:3 [ 4769.244000] PM: Removing info for No Bus:target6:0:3 [ 4769.244000] PM: Adding info for No Bus:target6:0:4 [ 4769.244000] PM: Removing info for No Bus:target6:0:4 [ 4769.244000] PM: Adding info for No Bus:target6:0:5 [ 4769.244000] PM: Removing info for No Bus:target6:0:5 [ 4769.244000] PM: Adding info for No Bus:target6:0:6 [ 4769.244000] PM: Removing info for No Bus:target6:0:6 [ 4769.244000] PM: Adding info for No Bus:target6:0:7 [ 4769.244000] PM: Removing info for No Bus:target6:0:7 [ 4769.244000] PM: Adding info for scsi:6:0:0:0 [ 4769.248000] sd 6:0:0:0: [sdb] 240121728 512-byte hardware sectors (122942 MB) [ 4769.248000] sd 6:0:0:0: [sdb] Test WP failed, assume Write Enabled [ 4769.248000] sd 6:0:0:0: [sdb] Assuming drive cache: write through [ 4769.248000] sd 6:0:0:0: [sdb] 240121728 512-byte hardware sectors (122942 MB) [ 4769.252000] sd 6:0:0:0: [sdb] Test WP failed, assume Write Enabled [ 4769.252000] sd 6:0:0:0: [sdb] Assuming drive cache: write through [ 4769.252000] sdb: sdb1 < sdb5 sdb6<6>usb 5-3: reset high speed USB device using ehci_hcd and address 8 [ 4769.544000] usb 5-3: device descriptor read/64, error -71 [ 4769.760000] usb 5-3: device descriptor read/64, error -71 [ 4769.976000] usb 5-3: reset high speed USB device using ehci_hcd and address 8 [ 4770.088000] usb 5-3: device descriptor read/64, error -71 [ 4770.304000] usb 5-3: device descriptor read/64, error -71 [ 4770.520000] usb 5-3: reset high speed USB device using ehci_hcd and address 8 [ 4770.928000] usb 5-3: device not accepting address 8, error -71 [ 4771.040000] usb 5-3: reset high speed USB device using ehci_hcd and address 8 [ 4771.448000] usb 5-3: device not accepting address 8, error -71 [ 4771.448000] usb 5-3: USB disconnect, address 8 [ 4771.448000] PM: Removing info for No Bus:usbdev5.8_ep81 [ 4771.448000] PM: Removing info for No Bus:usbdev5.8_ep02 [ 4771.448000] BUG: unable to handle kernel NULL pointer dereference at virtual address 00000000 [ 4771.448000] printing eip: [ 4771.448000] c0255cc7 [ 4771.448000] *pde = 00000000 [ 4771.448000] Oops: 0000 [#1] [ 4771.448000] SMP [ 4771.448000] Modules linked in: usb_storage ide_core libusual binfmt_misc nfs lockd sunrpc ipv6 sonypi ppdev acpi_cpufreq cpufreq_stats cpufreq_powersave cpufreq_conservative cpufreq_userspace cpufreq_ondemand freq_table button ac video dock container sbs battery af_packet sbp2 parport_pc lp parport fuse snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss joydev snd_seq_midi snd_rawmidi snd_seq_midi_event tifm_7xx1 pcmcia snd_seq snd_timer snd_seq_device sky2 serio_raw tifm_core snd soundcore yenta_socket rsrc_nonstatic pcmcia_core psmouse iTCO_wdt iTCO_vendor_support snd_page_alloc shpchp pci_hotplug intel_agp agpgart evdev ext3 jbd mbcache sg sd_mod sr_mod cdrom ata_generic ata_piix ohci1394 ieee1394 libata scsi_mod ehci_hcd uhci_hcd usbcore thermal processor fan [ 4771.448000] CPU: 0 [ 4771.448000] EIP: 0060:[] Not tainted VLI [ 4771.448000] EFLAGS: 00010202 (2.6.22-rc7-50 #1) [ 4771.448000] EIP is at make_class_name+0x27/0x80 [ 4771.448000] eax: 00000000 ebx: ffffffff ecx: ffffffff edx: 0000000b [ 4771.448000] esi: f89ffca6 edi: 00000000 ebp: 00000000 esp: f7d05e5c [ 4771.448000] ds: 007b es: 007b fs: 00d8 gs: 0000 ss: 0068 [ 4771.448000] Process khubd (pid: 2188, ti=f7d04000 task=c190f480 task.ti=f7d04000) [ 4771.448000] Stack: dfc9a608 dfc9a494 dfc9a600 dfc9a608 f8a12ac0 c0255e59 00000000 f8a12b88 [ 4771.448000] dfc9a600 dfc9a494 00000246 00000000 c0255ee8 dfc9a400 f89f9b56 dfc9a400 [ 4771.448000] efc26800 f89f71fb efc26830 efc26800 f89f17e5 efc26af8 f41ce818 f8be1100 [ 4771.448000] Call Trace: [ 4771.448000] [] class_device_del+0x99/0x120 [ 4771.448000] [] class_device_unregister+0x8/0x10 [ 4771.448000] [] __scsi_remove_device+0x26/0x60 [scsi_mod] [ 4771.448000] [] scsi_forget_host+0x4b/0x60 [scsi_mod] [ 4771.448000] [] scsi_remove_host+0x55/0xe0 [scsi_mod] [ 4771.448000] [] storage_disconnect+0xe/0x20 [usb_storage] [ 4771.448000] [] usb_unbind_interface+0x44/0x90 [usbcore] [ 4771.448000] [] __device_release_driver+0x68/0xa0 [ 4771.448000] [] device_release_driver+0x23/0x40 [ 4771.448000] [] bus_remove_device+0x5c/0x90 [ 4771.448000] [] device_del+0x160/0x260 [ 4771.448000] [] usb_disable_device+0x78/0xe0 [usbcore] [ 4771.448000] [] usb_disconnect+0x95/0x130 [usbcore] [ 4771.448000] [] hub_thread+0x270/0xc30 [usbcore] [ 4771.448000] [] do_exit+0x516/0x800 [ 4771.448000] [] autoremove_wake_function+0x0/0x40 [ 4771.448000] [] hub_thread+0x0/0xc30 [usbcore] [ 4771.448000] [] kthread+0x34/0x60 [ 4771.448000] [] kthread+0x0/0x60 [ 4771.448000] [] kernel_thread_helper+0x7/0x10 [ 4771.448000] ======================= [ 4771.448000] Code: 00 00 00 00 55 57 56 53 83 ec 04 31 ed 83 cb ff 89 c6 89 c7 89 14 24 89 d9 89 e8 f2 ae f7 d1 49 8b 04 24 89 ca 89 d9 8b 38 89 e8 ae f7 d1 49 8d 44 0a 02 ba d0 00 00 00 e8 06 36 f2 ff 31 d2 [ 4771.448000] EIP: [] make_class_name+0x27/0x80 SS:ESP 0068:f7d05e5c [ 4771.448000] sd 6:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK,SUGGEST_OK [ 4771.448000] end_request: I/O error, dev sdb, sector 163846928 [ 4771.448000] printk: 84 messages suppressed. [ 4771.448000] Buffer I/O error on device sdb, logical block 20480866 [ 4771.448000] Buffer I/O error on device sdb, logical block 20480866 [ 4771.448000] > [ 4771.448000] sd 6:0:0:0: [sdb] Attached SCSI disk [ 4771.448000] sd 6:0:0:0: Attached scsi generic sg2 type 0 [ 4771.556000] Buffer I/O error on device sdb, logical block 30015200 -- Daniel J Blueman