[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#631187: Kernel panics when removing external hard drive



On Wed, 2011-06-22 at 03:40 +0100, Ben Hutchings wrote:
> Which version of GNOME is this?

2.30.2. Apart from the newer kernel, this is a pure Squeeze system.

> The panic message shows there was an earlier kernel warning; please can
> you provide that.

Thanks to netconsole (a really great tool!) I was able to so. The
attached kernel log starts right before I plug the drive in.
Surprisingly the kernel didn't crash the first time, but after trying
again, everything went as expected (see lines 17 and 35). Please note
that I replaced the drive's serial number.

Best regards

Alexander Kurtz
[ 1420.016231] usb 1-3: new high speed USB device number 6 using ehci_hcd
[ 1420.150838] usb 1-3: New USB device found, idVendor=1058, idProduct=1010
[ 1420.150867] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1420.150891] usb 1-3: Product: External HDD    
[ 1420.150900] usb 1-3: Manufacturer: Western Digital 
[ 1420.150914] usb 1-3: SerialNumber: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[ 1420.152513] scsi7 : usb-storage 1-3:1.0
[ 1421.154225] scsi 7:0:0:0: Direct-Access     WD       2500BEV External 1.75 PQ: 0 ANSI: 4
[ 1421.158259] sd 7:0:0:0: [sdc] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[ 1421.159053] sd 7:0:0:0: [sdc] Write Protect is off
[ 1421.159069] sd 7:0:0:0: [sdc] Mode Sense: 23 00 00 00
[ 1421.159080] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[ 1421.161796] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[ 1421.179973]  sdc: sdc1
[ 1421.182628] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[ 1421.182657] sd 7:0:0:0: [sdc] Attached SCSI disk
[ 1454.865926] WARNING! power/level is deprecated; use power/control instead
[ 1454.944178] usb 1-3: USB disconnect, device number 6
[ 1477.564219] usb 1-2: new high speed USB device number 7 using ehci_hcd
[ 1477.698789] usb 1-2: New USB device found, idVendor=1058, idProduct=1010
[ 1477.698817] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1477.698841] usb 1-2: Product: External HDD    
[ 1477.698850] usb 1-2: Manufacturer: Western Digital 
[ 1477.698867] usb 1-2: SerialNumber: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[ 1477.700552] scsi8 : usb-storage 1-2:1.0
[ 1478.702244] scsi 8:0:0:0: Direct-Access     WD       2500BEV External 1.75 PQ: 0 ANSI: 4
[ 1478.705375] sd 8:0:0:0: [sdc] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[ 1478.705994] sd 8:0:0:0: [sdc] Write Protect is off
[ 1478.706023] sd 8:0:0:0: [sdc] Mode Sense: 23 00 00 00
[ 1478.706035] sd 8:0:0:0: [sdc] Assuming drive cache: write through
[ 1478.708338] sd 8:0:0:0: [sdc] Assuming drive cache: write through
[ 1478.725489]  sdc: sdc1
[ 1478.728353] sd 8:0:0:0: [sdc] Assuming drive cache: write through
[ 1478.728383] sd 8:0:0:0: [sdc] Attached SCSI disk
[ 1491.693027] BUG: unable to handle kernel NULL pointer dereference at 0000000000000048
[ 1491.693229] IP: [<ffffffff8118b2e3>] elv_completed_request+0x38/0x47
[ 1491.693380] PGD 1b7f16067 
[ 1491.693435] Buffer I/O error on device sdc1, logical block 61048968
[ 1491.693448] Buffer I/O error on device sdc1, logical block 61048968
[ 1491.693486] Buffer I/O error on device sdc1, logical block 61048992
[ 1491.693494] Buffer I/O error on device sdc1, logical block 61048992
[ 1491.693510] Buffer I/O error on device sdc1, logical block 61048998
[ 1491.693517] Buffer I/O error on device sdc1, logical block 61048998
[ 1491.693554] Buffer I/O error on device sdc1, logical block 61048999
[ 1491.693567] Buffer I/O error on device sdc1, logical block 0
[ 1491.693578] Buffer I/O error on device sdc1, logical block 0
[ 1491.693590] Buffer I/O error on device sdc1, logical block 256
[ 1491.694599] PUD 1b7f23067 PMD 0 
[ 1491.694689] Oops: 0000 [#1] SMP 
[ 1491.694777] last sysfs file: /sys/devices/pci0000:00/0000:00:12.2/usb1/1-2/power/autosuspend
[ 1491.694945] CPU 1 
[ 1491.694991] Modules linked in: netconsole configfs parport_pc ppdev lp parport bridge stp bnep rfcomm bluetooth powernow_k8 mperf cpufreq_stats cpufreq_userspace cpufreq_powersave cpufreq_conservative binfmt_misc fuse snd_hda_codec_hdmi joydev snd_hda_codec_conexant radeon arc4 ecb ttm drm_kms_helper snd_hda_intel thinkpad_acpi rtl8192ce drm snd_hda_codec rtl8192c_common snd_hwdep i2c_algo_bit rtlwifi snd_pcm snd_seq snd_seq_device mac80211 snd_timer snd cfg80211 i2c_piix4 shpchp soundcore tpm_tis tpm psmouse tpm_bios snd_page_alloc wmi nvram k10temp rfkill pcspkr pci_hotplug i2c_core evdev serio_raw battery video ac edac_core power_supply edac_mce_amd button processor ext4 mbcache jbd2 crc16 sha256_generic cryptd aes_x86_64 aes_generic cbc dm_crypt dm_mod raid10 raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx raid1 raid0 multipath linear md_mod sd_mod usb_storage crc_t10dif uas ahci libahci ohci_hcd libata ehci_hcd r8169 thermal scsi_mod usbcore mii thermal_sys [last unloaded: configfs]
[ 1491.696825] 
[ 1491.696825] Pid: 10, comm: ksoftirqd/1 Tainted: G        W    2.6.39-2-amd64 #1 LENOVO 0221A16/0221A16
[ 1491.696825] RIP: 0010:[<ffffffff8118b2e3>]  [<ffffffff8118b2e3>] elv_completed_request+0x38/0x47
[ 1491.696825] RSP: 0018:ffff8801b8d8dd50  EFLAGS: 00010002
[ 1491.696825] RAX: 0000000000000000 RBX: ffff8801b5642738 RCX: 0000027545ea743f
[ 1491.696825] RDX: ffff8801a8243180 RSI: ffff8801b50a1ba0 RDI: ffff8801b5642738
[ 1491.696825] RBP: ffff8801b50a1ba0 R08: 0000000000800120 R09: ffff8801b50a1ba0
[ 1491.696825] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[ 1491.696825] R13: 0000000000000246 R14: 0000000000000000 R15: 0000000000000000
[ 1491.696825] FS:  00007f5a85eb3700(0000) GS:ffff8801bfd00000(0000) knlGS:0000000000000000
[ 1491.696825] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 1491.696825] CR2: 0000000000000048 CR3: 00000001b7f15000 CR4: 00000000000006e0
[ 1491.696825] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 1491.696825] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 1491.696825] Process ksoftirqd/1 (pid: 10, threadinfo ffff8801b8d8c000, task ffff8801b8d64e80)
[ 1491.696825] Stack:
[ 1491.696825]  0000000000000000 ffffffff811906d8 ffff8801b50a1ba0 ffff8801b5642738
[ 1491.696825]  0000000000000000 ffffffff81190c46 0000000000000087 ffff8801b52a7bc0
[ 1491.696825]  ffff8801b50a1ba0 0000000000000000 0000000000000000 ffffffffa014c319
[ 1491.696825] Call Trace:
[ 1491.696825]  [<ffffffff811906d8>] ? __blk_put_request+0x2e/0xbd
[ 1491.696825]  [<ffffffff81190c46>] ? blk_end_bidi_request+0x3b/0x55
[ 1491.696825]  [<ffffffffa014c319>] ? scsi_io_completion+0x1d0/0x48e [scsi_mod]
[ 1491.696825]  [<ffffffff811950d3>] ? blk_done_softirq+0x6b/0x78
[ 1491.696825]  [<ffffffff8104b4cf>] ? __do_softirq+0xc3/0x19e
[ 1491.696825]  [<ffffffff8104b626>] ? run_ksoftirqd+0x7c/0x122
[ 1491.696825]  [<ffffffff8104b5aa>] ? __do_softirq+0x19e/0x19e
[ 1491.696825]  [<ffffffff8104b5aa>] ? __do_softirq+0x19e/0x19e
[ 1491.696825]  [<ffffffff8105ef05>] ? kthread+0x7a/0x82
[ 1491.696825]  [<ffffffff81339ee4>] ? kernel_thread_helper+0x4/0x10
[ 1491.696825]  [<ffffffff8105ee8b>] ? kthread_worker_fn+0x147/0x147
[ 1491.696825]  [<ffffffff81339ee0>] ? gs_change+0x13/0x13
[ 1491.696825] Code: 40 74 35 83 7e 44 01 74 04 a8 40 74 2b 83 e0 11 ff c8 0f 95 c0 83 e0 01 48 05 fc 00 00 00 ff 4c 87 04 f6 46 41 04 74 10 48 8b 02 
[ 1491.696825]  8b 40 48 48 85 c0 74 04 41 58 ff e0 59 c3 48 8d be 80 00 00 
[ 1491.696825] RIP  [<ffffffff8118b2e3>] elv_completed_request+0x38/0x47
[ 1491.696825]  RSP <ffff8801b8d8dd50>
[ 1491.696825] CR2: 0000000000000048
[ 1491.788520] ---[ end trace 5a5d197966b56a30 ]---
[ 1491.788520] Kernel panic - not syncing: Fatal exception in interrupt
[ 1491.788520] Pid: 10, comm: ksoftirqd/1 Tainted: G      D W    2.6.39-2-amd64 #1
[ 1491.788520] Call Trace:
[ 1491.788520]  [<ffffffff81330c08>] ? panic+0x92/0x1a1
[ 1491.788520]  [<ffffffff81045e46>] ? kmsg_dump+0x41/0xe3
[ 1491.788520]  [<ffffffff81333a6b>] ? oops_end+0xa9/0xb6
[ 1491.788520]  [<ffffffff8102c9ef>] ? no_context+0x1f4/0x201
[ 1491.788520]  [<ffffffff8133597d>] ? do_page_fault+0x1af/0x34c
[ 1491.788520]  [<ffffffff81034c41>] ? check_preempt_curr+0x25/0x62
[ 1491.788520]  [<ffffffff8103f960>] ? try_to_wake_up+0x16a/0x17c
[ 1491.788520]  [<ffffffff8105f35a>] ? autoremove_wake_function+0x9/0x2a
[ 1491.788520]  [<ffffffff81034742>] ? __wake_up_common+0x41/0x78
[ 1491.788520]  [<ffffffff81332f55>] ? page_fault+0x25/0x30
[ 1491.788520]  [<ffffffff8118b2e3>] ? elv_completed_request+0x38/0x47
[ 1491.788520]  [<ffffffff811906d8>] ? __blk_put_request+0x2e/0xbd
[ 1491.788520]  [<ffffffff81190c46>] ? blk_end_bidi_request+0x3b/0x55
[ 1491.788520]  [<ffffffffa014c319>] ? scsi_io_completion+0x1d0/0x48e [scsi_mod]
[ 1491.788520]  [<ffffffff811950d3>] ? blk_done_softirq+0x6b/0x78
[ 1491.788520]  [<ffffffff8104b4cf>] ? __do_softirq+0xc3/0x19e
[ 1491.788520]  [<ffffffff8104b626>] ? run_ksoftirqd+0x7c/0x122
[ 1491.788520]  [<ffffffff8104b5aa>] ? __do_softirq+0x19e/0x19e
[ 1491.788520]  [<ffffffff8104b5aa>] ? __do_softirq+0x19e/0x19e
[ 1491.788520]  [<ffffffff8105ef05>] ? kthread+0x7a/0x82
[ 1491.788520]  [<ffffffff81339ee4>] ? kernel_thread_helper+0x4/0x10
[ 1491.788520]  [<ffffffff8105ee8b>] ? kthread_worker_fn+0x147/0x147
[ 1491.788520]  [<ffffffff81339ee0>] ? gs_change+0x13/0x13
[ 1491.788520] panic occurred, switching back to text console
[ 1491.788520] BUG: scheduling while atomic: ksoftirqd/1/10/0x10000100
[ 1491.788520] Modules linked in: netconsole configfs parport_pc ppdev lp parport bridge stp bnep rfcomm bluetooth powernow_k8 mperf cpufreq_stats cpufreq_userspace cpufreq_powersave cpufreq_conservative binfmt_misc fuse snd_hda_codec_hdmi joydev snd_hda_codec_conexant radeon arc4 ecb ttm drm_kms_helper snd_hda_intel thinkpad_acpi rtl8192ce drm snd_hda_codec rtl8192c_common snd_hwdep i2c_algo_bit rtlwifi snd_pcm snd_seq snd_seq_device mac80211 snd_timer snd cfg80211 i2c_piix4 shpchp soundcore tpm_tis tpm psmouse tpm_bios snd_page_alloc wmi nvram k10temp rfkill pcspkr pci_hotplug i2c_core evdev serio_raw battery video ac edac_core power_supply edac_mce_amd button processor ext4 mbcache jbd2 crc16 sha256_generic cryptd aes_x86_64 aes_generic cbc dm_crypt dm_mod raid10 raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx raid1 raid0 multipath linear md_mod sd_mod usb_storage crc_t10dif uas ahci libahci ohci_hcd libata ehci_hcd r8169 thermal scsi_mod usbcore mii thermal_sys [last unloaded: configfs]
[ 1491.788520] Pid: 10, comm: ksoftirqd/1 Tainted: G      D W    2.6.39-2-amd64 #1
[ 1491.788520] Call Trace:
[ 1491.788520]  [<ffffffff81330fe6>] ? schedule+0x99/0x5d5
[ 1491.788520]  [<ffffffffa03ec25a>] ? drm_crtc_helper_set_config+0x108/0x88e [drm_kms_helper]
[ 1491.788520]  [<ffffffff81042e41>] ? __cond_resched+0x1d/0x26
[ 1491.788520]  [<ffffffff8133176c>] ? _cond_resched+0x27/0x32
[ 1491.788520]  [<ffffffff810edf01>] ? __kmalloc+0x69/0x11c
[ 1491.788520]  [<ffffffffa03ec25a>] ? drm_crtc_helper_set_config+0x108/0x88e [drm_kms_helper]
[ 1491.788520]  [<ffffffff8100bb68>] ? print_context_stack+0xa1/0xbd
[ 1491.788520]  [<ffffffffa03e9e00>] ? drm_fb_helper_restore_fbdev_mode+0x2b/0x46 [drm_kms_helper]
[ 1491.788520]  [<ffffffffa03e9e52>] ? drm_fb_helper_force_kernel_mode+0x37/0x6c [drm_kms_helper]
[ 1491.788520]  [<ffffffffa03e9ecd>] ? drm_fb_helper_panic+0x17/0x1c [drm_kms_helper]
[ 1491.788520]  [<ffffffff81335b48>] ? notifier_call_chain+0x2e/0x5b
[ 1491.788520]  [<ffffffff81330c36>] ? panic+0xc0/0x1a1
[ 1491.788520]  [<ffffffff81045e46>] ? kmsg_dump+0x41/0xe3
[ 1491.788520]  [<ffffffff81333a6b>] ? oops_end+0xa9/0xb6
[ 1491.788520]  [<ffffffff8102c9ef>] ? no_context+0x1f4/0x201
[ 1491.788520]  [<ffffffff8133597d>] ? do_page_fault+0x1af/0x34c
[ 1491.788520]  [<ffffffff81034c41>] ? check_preempt_curr+0x25/0x62
[ 1491.788520]  [<ffffffff8103f960>] ? try_to_wake_up+0x16a/0x17c
[ 1491.788520]  [<ffffffff8105f35a>] ? autoremove_wake_function+0x9/0x2a
[ 1491.788520]  [<ffffffff81034742>] ? __wake_up_common+0x41/0x78
[ 1491.788520]  [<ffffffff81332f55>] ? page_fault+0x25/0x30
[ 1491.788520]  [<ffffffff8118b2e3>] ? elv_completed_request+0x38/0x47
[ 1491.788520]  [<ffffffff811906d8>] ? __blk_put_request+0x2e/0xbd
[ 1491.788520]  [<ffffffff81190c46>] ? blk_end_bidi_request+0x3b/0x55
[ 1491.788520]  [<ffffffffa014c319>] ? scsi_io_completion+0x1d0/0x48e [scsi_mod]
[ 1491.788520]  [<ffffffff811950d3>] ? blk_done_softirq+0x6b/0x78
[ 1491.788520]  [<ffffffff8104b4cf>] ? __do_softirq+0xc3/0x19e
[ 1491.788520]  [<ffffffff8104b626>] ? run_ksoftirqd+0x7c/0x122
[ 1491.788520]  [<ffffffff8104b5aa>] ? __do_softirq+0x19e/0x19e
[ 1491.788520]  [<ffffffff8104b5aa>] ? __do_softirq+0x19e/0x19e
[ 1491.788520]  [<ffffffff8105ef05>] ? kthread+0x7a/0x82
[ 1491.788520]  [<ffffffff81339ee4>] ? kernel_thread_helper+0x4/0x10
[ 1491.788520]  [<ffffffff8105ee8b>] ? kthread_worker_fn+0x147/0x147
[ 1491.788520]  [<ffffffff81339ee0>] ? gs_change+0x13/0x13

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: