oops after ejecting USB flash disk

Bug #942705 reported by Martin Mrazik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I'm running 12.04 and I was creating a USB boot disk from 11.10 ISO on my filesystem. Once it was ready I ejected the flash by draging and dropping the icon in unity launcher to Trash. I've seen a "device successfully ejected" message and then the following:

Feb 28 16:49:50 fry kernel: [ 9486.264206] usb 2-1.2: USB disconnect, device number 3
Feb 28 16:49:50 fry kernel: [ 9486.266754] BUG: unable to handle kernel NULL pointer dereference at 00000004
Feb 28 16:49:50 fry kernel: [ 9486.266887] IP: [<c13c6a01>] sd_revalidate_disk+0x21/0x290
Feb 28 16:49:50 fry kernel: [ 9486.266988] *pdpt = 0000000036a58001 *pde = 0000000000000000
Feb 28 16:49:50 fry kernel: [ 9486.267084] Oops: 0000 [#1] SMP
Feb 28 16:49:50 fry kernel: [ 9486.267146] Modules linked in: nls_utf8 isofs nls_iso8859_1 nls_cp437 usb_storage usblp hid_microsoft snd_usb_audio snd_usbmidi_lib usbhid hid btrfs zlib_deflate libcrc32c ufs qnx4 h
fsplus hfs minix ntfs vfat msdos fat jfs xfs reiserfs ext2 parport_pc ppdev rfcomm bnep binfmt_misc snd_hda_codec_hdmi snd_hda_codec_conexant joydev arc4 psmouse serio_raw snd_hda_intel snd_hda_codec snd_hwdep iwl
wifi thinkpad_acpi snd_pcm mac80211 uvcvideo cfg80211 videodev snd_seq_midi snd_page_alloc snd_rawmidi btusb bluetooth snd_seq_midi_event snd_seq snd_timer snd_seq_device snd soundcore nvram tpm_tis wmi i915 mac_h
id drm_kms_helper drm mei(C) i2c_algo_bit video lp parport sdhci_pci sdhci firewire_ohci firewire_core crc_itu_t e1000e
Feb 28 16:49:50 fry kernel: [ 9486.268724]
Feb 28 16:49:50 fry kernel: [ 9486.268771] Pid: 1687, comm: udisks-daemon Tainted: G C 3.2.0-17-generic-pae #26-Ubuntu LENOVO 4178BSG/4178BSG
Feb 28 16:49:50 fry kernel: [ 9486.269037] EIP: 0060:[<c13c6a01>] EFLAGS: 00010286 CPU: 0
Feb 28 16:49:50 fry kernel: [ 9486.269169] EIP is at sd_revalidate_disk+0x21/0x290
Feb 28 16:49:50 fry kernel: [ 9486.269285] EAX: 00000000 EBX: 00000000 ECX: 00000002 EDX: c13c69e0
Feb 28 16:49:50 fry kernel: [ 9486.269427] ESI: ecf98860 EDI: ecf98800 EBP: ed15bd48 ESP: ed15bd28
Feb 28 16:49:50 fry kernel: [ 9486.269571] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
Feb 28 16:49:50 fry kernel: [ 9486.269699] Process udisks-daemon (pid: 1687, ti=ed15a000 task=f2004bc0 task.ti=ed15a000)
Feb 28 16:49:50 fry kernel: [ 9486.269879] Stack:
Feb 28 16:49:50 fry kernel: [ 9486.269932] c115b093 f2b43e00 00000000 00000002 00000001 00000000 ecf98860 ecf98800
Feb 28 16:49:50 fry kernel: [ 9486.270168] ed15bdb4 c119d5c2 000003a8 c13a4bd7 c109218a fbe86400 ed15bd68 c137db44
Feb 28 16:49:50 fry kernel: [ 9486.270400] ed15bd78 c13a4bc4 f0205200 ecf98860 00000000 f2b43e00 ecf9e400 ffffff85
Feb 28 16:49:50 fry kernel: [ 9486.270634] Call Trace:
Feb 28 16:49:50 fry kernel: [ 9486.270702] [<c115b093>] ? iput+0x23/0x40
Feb 28 16:49:50 fry kernel: [ 9486.270804] [<c119d5c2>] rescan_partitions+0x82/0x350
Feb 28 16:49:50 fry kernel: [ 9486.270929] [<c13a4bd7>] ? scsi_device_put+0x47/0x50
Feb 28 16:49:50 fry kernel: [ 9486.271054] [<c109218a>] ? module_refcount+0x7a/0x90
Feb 28 16:49:50 fry kernel: [ 9486.271178] [<c137db44>] ? put_device+0x14/0x20
Feb 28 16:49:50 fry kernel: [ 9486.271292] [<c13a4bc4>] ? scsi_device_put+0x34/0x50
Feb 28 16:49:50 fry kernel: [ 9486.271415] [<c13c42ef>] ? sd_open+0xff/0x1d0
Feb 28 16:49:50 fry kernel: [ 9486.271521] [<c1175076>] __blkdev_get+0x266/0x3c0
Feb 28 16:49:50 fry kernel: [ 9486.271644] [<c1175217>] blkdev_get+0x47/0x180
Feb 28 16:49:50 fry kernel: [ 9486.271761] [<c15a452d>] ? _raw_spin_lock+0xd/0x10
Feb 28 16:49:50 fry kernel: [ 9486.271887] [<c11753a0>] blkdev_open+0x50/0x70
Feb 28 16:49:50 fry kernel: [ 9486.272008] [<c1141a9e>] __dentry_open+0x25e/0x310
Feb 28 16:49:50 fry kernel: [ 9486.272134] [<c1175350>] ? blkdev_get+0x180/0x180
Feb 28 16:49:50 fry kernel: [ 9486.272260] [<c114201a>] vfs_open+0x3a/0x50
Feb 28 16:49:50 fry kernel: [ 9486.272365] [<c1142f19>] nameidata_to_filp+0x39/0x40
Feb 28 16:49:50 fry kernel: [ 9486.272487] [<c11502a7>] do_last+0x367/0x660
Feb 28 16:49:50 fry kernel: [ 9486.272600] [<c11515d4>] path_openat+0xa4/0x350
Feb 28 16:49:50 fry kernel: [ 9486.272709] [<c1151991>] do_filp_open+0x31/0x80
Feb 28 16:49:50 fry kernel: [ 9486.272818] [<c12b4728>] ? strncpy_from_user+0x38/0x70
Feb 28 16:49:50 fry kernel: [ 9486.272936] [<c115cf23>] ? alloc_fd+0xa3/0xe0
Feb 28 16:49:50 fry kernel: [ 9486.273043] [<c1143001>] do_sys_open+0xe1/0x1f0
Feb 28 16:49:50 fry kernel: [ 9486.273149] [<c1083eab>] ? ktime_get_ts+0xeb/0x120
Feb 28 16:49:50 fry kernel: [ 9486.273254] [<c114313e>] sys_open+0x2e/0x40
Feb 28 16:49:50 fry kernel: [ 9486.273358] [<c15ab91f>] sysenter_do_call+0x12/0x28
Feb 28 16:49:50 fry kernel: [ 9486.273476] [<c15a0000>] ? enable_arbiter_disable+0xdb/0xf5
Feb 28 16:49:50 fry kernel: [ 9486.273605] Code: 74 26 00 8d bc 27 00 00 00 00 55 89 e5 83 ec 20 89 5d f4 89 75 f8 89 7d fc 3e 8d 74 26 00 8b 98 e8 01 00 00 89 c7 a1 c0 41 a0 c1 <8b> 73 04 c1 e8 15 83 e0 07 83 f8 03 0f 87 fa 01 00 00 8b 86 94
Feb 28 16:49:50 fry kernel: [ 9486.274414] EIP: [<c13c6a01>] sd_revalidate_disk+0x21/0x290 SS:ESP 0068:ed15bd28
Feb 28 16:49:50 fry kernel: [ 9486.274591] CR2: 0000000000000004
Feb 28 16:49:50 fry kernel: [ 9486.480805] ---[ end trace 497b60e337aa0d13 ]---

Unfortunately the computer froze couple of seconds afterwards (I don't think it is related to this bug as I'm experiencing that behavior couple of times a day) so I wasn't able to finish the bug reporting process.
I started this one using:
mmrazik@fry:~$ ubuntu-bug linux-image-3.2.0-17-generic-pae
and extracting the trace from syslog.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-3.2.0-17-generic-pae 3.2.0-17.27
ProcVersionSignature: Ubuntu 3.2.0-17.27-generic-pae 3.2.6
Uname: Linux 3.2.0-17-generic-pae i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.93-0ubuntu2
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: mmrazik 2646 F.... pulseaudio
 /dev/snd/controlC1: mmrazik 2646 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xf2620000 irq 45'
   Mixer name : 'Intel CougarPoint HDMI'
   Components : 'HDA:14f1506e,17aa21ce,00100002 HDA:80862805,80860101,00100000'
   Controls : 26
   Simple ctrls : 8
Card1.Amixer.info:
 Card hw:1 'Headset'/'Logitech Logitech USB Headset at usb-0000:00:1a.0-1.5.3, full speed'
   Mixer name : 'USB Mixer'
   Components : 'USB046d:0a0b'
   Controls : 6
   Simple ctrls : 2
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw unknown'
   Mixer name : 'ThinkPad EC (unknown)'
   Components : ''
   Controls : 1
   Simple ctrls : 1
Card29.Amixer.values:
 Simple mixer control 'Console',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Date: Tue Feb 28 17:04:48 2012
HibernationDevice: RESUME=UUID=a1e9f793-721d-41a3-b975-01afdb201593
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
MachineType: LENOVO 4178BSG
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-17-generic-pae root=UUID=4f16b282-59de-4923-aebf-3a8f0fcef5d9 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-17-generic-pae N/A
 linux-backports-modules-3.2.0-17-generic-pae N/A
 linux-firmware 1.71
SourcePackage: linux
StagingDrivers: mei
UpgradeStatus: Upgraded to precise on 2012-02-17 (11 days ago)
dmi.bios.date: 07/29/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 83ET63WW (1.33 )
dmi.board.asset.tag: Not Available
dmi.board.name: 4178BSG
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr83ET63WW(1.33):bd07/29/2011:svnLENOVO:pn4178BSG:pvrThinkPadT420:rvnLENOVO:rn4178BSG:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 4178BSG
dmi.product.version: ThinkPad T420
dmi.sys.vendor: LENOVO

Revision history for this message
Martin Mrazik (mrazik) wrote :
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I believe this is a dup of bug 914319

Can you test the test kernel listed in comment #10 of that bug?

Changed in linux (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.