umount caused kernel oops after suspend/resume with encrypted SD card

Bug #546316 reported by Rob David
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

I have an HP nx8220 laptop with a built in SD card slot. Suspending and resuming the laptop with a mounted encrypted SD card resulted in a kernel oops:

 Mar 24 18:10:09 cygnus kernel: [19358.108220] WARNING: at /build/buildd/linux-2.6.32/fs/buffer.c:1159 mark_buffer_dirty+0x70/0x90()
Mar 24 18:10:09 cygnus kernel: [19358.108223] Hardware name: HP Compaq nx8220 (PY518ET#ABU)
Mar 24 18:10:09 cygnus kernel: [19358.108225] Modules linked in: mmc_block tifm_sd usbhid hid sha256_generic nls_iso8859_1 nls_cp437 vfat fat usb_storage isofs udf crc_itu_t michael_mic arc4 lib80211_crypt_tkip lib80211_crypt_ccmp aes_i586 aes_generic binfmt_misc vboxnetflt vboxnetadp vboxdrv dm_crypt rfcomm sco bridge stp bnep l2cap snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq joydev snd_timer pcmcia snd_seq_device ipw2200 libipw sdhci_pci yenta_socket sdhci snd rsrc_nonstatic tifm_7xx1 ppdev led_class tifm_core lib80211 soundcore lp parport_pc pcmcia_core psmouse irda serio_raw btusb crc_ccitt snd_page_alloc bluetooth parport fbcon tileblit font bitblit softcursor vga16fb vgastate radeon ttm drm_kms_helper drm ohci1394 intel_agp ieee1394 video output tg3 i2c_algo_bit agpgart
Mar 24 18:10:09 cygnus kernel: [19358.108293] Pid: 16937, comm: umount Not tainted 2.6.32-17-generic #26-Ubuntu
Mar 24 18:10:09 cygnus kernel: [19358.108295] Call Trace:
Mar 24 18:10:09 cygnus kernel: [19358.108302] [<c014c332>] warn_slowpath_common+0x72/0xa0
Mar 24 18:10:09 cygnus kernel: [19358.108306] [<c022c210>] ? mark_buffer_dirty+0x70/0x90
Mar 24 18:10:09 cygnus kernel: [19358.108309] [<c022c210>] ? mark_buffer_dirty+0x70/0x90
Mar 24 18:10:09 cygnus kernel: [19358.108312] [<c014c37a>] warn_slowpath_null+0x1a/0x20
Mar 24 18:10:09 cygnus kernel: [19358.108315] [<c022c210>] mark_buffer_dirty+0x70/0x90
Mar 24 18:10:09 cygnus kernel: [19358.108320] [<c02c01d2>] journal_update_superblock+0x72/0xd0
Mar 24 18:10:09 cygnus kernel: [19358.108325] [<c01676a0>] ? autoremove_wake_function+0x0/0x50
Mar 24 18:10:09 cygnus kernel: [19358.108328] [<c02c06a3>] journal_destroy+0xf3/0x110
Mar 24 18:10:09 cygnus kernel: [19358.108333] [<c0270730>] ext3_put_super+0x30/0x240
Mar 24 18:10:09 cygnus kernel: [19358.108337] [<c021cb7e>] ? invalidate_inodes+0xfe/0x120
Mar 24 18:10:09 cygnus kernel: [19358.108341] [<c0248820>] ? vfs_quota_off+0x0/0x20
Mar 24 18:10:09 cygnus kernel: [19358.108345] [<c0209a6d>] generic_shutdown_super+0x4d/0xe0
Mar 24 18:10:09 cygnus kernel: [19358.108348] [<c0209b2a>] kill_block_super+0x2a/0x50
Mar 24 18:10:09 cygnus kernel: [19358.108351] [<c020a944>] deactivate_super+0x64/0x90
Mar 24 18:10:09 cygnus kernel: [19358.108355] [<c021feaf>] mntput_no_expire+0x8f/0xe0
Mar 24 18:10:09 cygnus kernel: [19358.108358] [<c02204c7>] sys_umount+0x47/0x90
Mar 24 18:10:09 cygnus kernel: [19358.108361] [<c022052e>] sys_oldumount+0x1e/0x20
Mar 24 18:10:09 cygnus kernel: [19358.108365] [<c01033ec>] syscall_call+0x7/0xb
Mar 24 18:10:09 cygnus kernel: [19358.108367] ---[ end trace 2aa548766266df93 ]---
Mar 24 18:10:09 cygnus kernel: [19358.108428] lost page write due to I/O error on dm-0
Mar 24 18:10:09 cygnus kernel: [19358.108509] lost page write due to I/O error on dm-0

I can't recall the exact sequence of events, but I believe it was:

* Inserted SD card. Prompted for passphrase. Entered and selected "remember passphrase forever"
* Icon for SD card appeared on desktop with open padlock icon. Successfully accessed files.
* Suspended and resumed laptop.
* Was prompted again for passphrase for SD card. Again entered and selected "remember passphrase forever"
* Got an error message dialog saying something to the effect that the file system was already mounted.
* Icon for SD card appeared on desktop *without* padlock icon.
* Right clicked on SD card icon and unmounted the drive.

ProblemType: KernelOops
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Annotation: Your system might become unstable now and might need to be restarted.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: robd 11975 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'ICH6'/'Intel ICH6 with AD1981B at irq 21'
   Mixer name : 'Analog Devices AD1981B'
   Components : 'AC97a:41445374'
   Controls : 25
   Simple ctrls : 18
Date: Wed Mar 24 18:10:20 2010
DistroRelease: Ubuntu 10.04
Failure: oops
Frequency: This has only happened once.
HibernationDevice: RESUME=UUID=396dc03f-7b25-4795-bf06-8abc47ecd339
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release Candidate i386 (20091020.3)
Lsusb:
 Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 002: ID 03f0:011d Hewlett-Packard Integrated Bluetooth Module
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Hewlett-Packard HP Compaq nx8220 (PY518ET#ABU)
Package: linux-image-2.6.32-17-generic 2.6.32-17.26
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-17-generic root=UUID=e26b9fc8-d0e9-4917-a0e5-5a9c845f4696 ro quiet splash
ProcVersionSignature: Ubuntu 2.6.32-17.26-generic 2.6.32.10+drm33.1
Regression: No
RelatedPackageVersions: linux-firmware 1.33
Reproducible: No
RfKill:
 7: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
TestedUpstream: No
Title: WARNING: at /build/buildd/linux-2.6.32/fs/buffer.c:1159 mark_buffer_dirty+0x70/0x90()
Uname: Linux 2.6.32-17-generic i686
dmi.bios.date: 01/17/2006
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 68DTV Ver. F.10
dmi.board.name: 0934
dmi.board.vendor: Hewlett-Packard
dmi.board.version: KBC Version 43.1D
dmi.chassis.asset.tag: CNU6181XR2
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-Packard:bvr68DTVVer.F.10:bd01/17/2006:svnHewlett-Packard:pnHPCompaqnx8220(PY518ET#ABU):pvrF.10:rvnHewlett-Packard:rn0934:rvrKBCVersion43.1D:cvnHewlett-Packard:ct10:cvr:
dmi.product.name: HP Compaq nx8220 (PY518ET#ABU)
dmi.product.version: F.10
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
Rob David (rob-david) wrote :
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi Rob,

This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux 546316

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

    [This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kernel-suspend
tags: added: needs-kernel-logs
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Rob David (rob-david) wrote :
Download full text (3.9 KiB)

OK, I've tried my scenario again with the latest updates installed. I now have kernel 2.6.32-21-generic. I'm still able to induce a kernel panic, although It doesn't seem to happen every time.

I'm using an SD card that is encrypted (using luks) and I've got Gnome to permanently remember the encryption key, so I can just insert the card without having to type the password. So, my sequence of events is:

* Insert SD card. The icon for the card appears on the desktop and I can access it fine.
* Suspend and then resume the laptop. At this point the dialog asking for the encryption password pops up. This shouldn't happen as Gnome should be remembering the encryption key.
* Enter the password and click "connect". I then get a popup saying that the luks device in /dev/mapper already exists.
* Click OK to cancel the popup. At this point there is stil an icon for the SD card on the desktop. It still seems to be a functional mount point, and I can still browse files on it.
* Right click and unmount the card. This is the point that a kernel panic might occur (pasted below).

In any case, there is a luks device left in /dev/mapper, and the only way I could get rid of it is by doing a "dmsetup remove".

I had to repeat the cycle about three times before I eventually oopsed the kernel.

Kernel panic log:

Apr 28 19:57:27 cygnus kernel: [ 3200.568290] Hardware name: HP Compaq nx8220 (PY518ET#ABU)
Apr 28 19:57:27 cygnus kernel: [ 3200.568294] Modules linked in: usb_storage sha256_generic mmc_block tifm_sd michael_mic arc4 lib80211_crypt_tkip lib80211_crypt_ccmp aes_i586 aes_generic rfcomm binfmt_misc sco bridge stp bnep l2cap vboxdrv dm_crypt joydev snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss pcmcia snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device yenta_socket tifm_7xx1 ipw2200 sdhci_pci ppdev rsrc_nonstatic btusb bluetooth snd sdhci libipw tifm_core parport_pc irda crc_ccitt pcmcia_core psmouse serio_raw led_class lib80211 soundcore snd_page_alloc lp parport fbcon tileblit font bitblit softcursor vga16fb vgastate radeon ttm drm_kms_helper ohci1394 drm ieee1394 intel_agp tg3 agpgart i2c_algo_bit video output
Apr 28 19:57:27 cygnus kernel: [ 3200.568438] Pid: 11223, comm: umount Not tainted 2.6.32-21-generic #32-Ubuntu
Apr 28 19:57:27 cygnus kernel: [ 3200.568444] Call Trace:
Apr 28 19:57:27 cygnus kernel: [ 3200.568456] [<c014c3d2>] warn_slowpath_common+0x72/0xa0
Apr 28 19:57:27 cygnus kernel: [ 3200.568465] [<c022c450>] ? mark_buffer_dirty+0x70/0x90
Apr 28 19:57:27 cygnus kernel: [ 3200.568473] [<c022c450>] ? mark_buffer_dirty+0x70/0x90
Apr 28 19:57:27 cygnus kernel: [ 3200.568481] [<c014c41a>] warn_slowpath_null+0x1a/0x20
Apr 28 19:57:27 cygnus kernel: [ 3200.568489] [<c022c450>] mark_buffer_dirty+0x70/0x90
Apr 28 19:57:27 cygnus kernel: [ 3200.568499] [<c0270e65>] ext3_put_super+0x165/0x240
Apr 28 19:57:27 cygnus kernel: [ 3200.568509] [<c021cdae>] ? invalidate_inodes+0xfe/0x120
Apr 28 19:57:27 cygnus kernel: [ 3200.568519] [<c0248b80>] ? vfs_quota_off+0x0/0x20
Apr 28 19:57:27 cygnus kernel: [ 3200.568528] [<c0209c9d>] generic_shutdown_super+0x4d/0xe0
Apr 28 19:57:...

Read more...

Changed in linux (Ubuntu):
status: Incomplete → Triaged
importance: Undecided → Medium
Revision history for this message
Rob David (rob-david) wrote :

I've tried to test this issue with two mainline kernels: 2.6.33-02063302 and 2.6.34-020634rc6, but suspend and resume was non-functional with both of these, so I wasn't able to.

Revision history for this message
Likewise (leonw) wrote :

I have a similar issue as the reporter. I was trying to insert an SD card into my monitor, I was fiddling a bit finding for correct insertion. SD Card showed up in Nautilus and I was looking into "dmesg" to see what "sdX" device it had gotten. Then I saw the WARNING.

Linux sideways 2.6.32-24-generic-pae #43-Ubuntu SMP Thu Sep 16 15:30:27 UTC 2010 i686 GNU/Linux

First two lines included, so that we see there was no logged activity before.

[10339.131965] pl2303 1-1.2.1.2:1.0: device disconnected
[14092.815713] ip_tables: (C) 2000-2006 Netfilter Core Team
[25579.158412] sd 7:0:0:0: [sdh] 3862528 512-byte logical blocks: (1.97 GB/1.84 GiB)
[25579.166636] sd 7:0:0:0: [sdh] Assuming drive cache: write through
[25579.189288] sd 7:0:0:0: [sdh] Assuming drive cache: write through
[25579.189294] sdh: sdh1 sdh2
[25580.066526] EXT2-fs warning: checktime reached, running e2fsck is recommended
[25593.631739] ------------[ cut here ]------------
[25593.631752] WARNING: at /build/buildd/linux-2.6.32/fs/buffer.c:1159 mark_buffer_dirty+0x70/0x90()
[25593.631756] Hardware name: Studio XPS 8100
[25593.631759] Modules linked in: nls_iso8859_1 vfat fat iptable_filter ip_tables x_tables nls_utf8 isofs binfmt_misc ppdev kvm_intel kvm nfsd exportfs nfs lockd nfs_acl auth_rpcgss nls_cp437 cifs snd_hda_codec_atihdmi snd_hda_codec_intelhdmi snd_hda_codec_realtek pl2303 usbserial snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device fbcon tileblit sunrpc font bitblit softcursor snd dell_wmi dcdbas fglrx(P) psmouse serio_raw agpgart vga16fb vgastate soundcore snd_page_alloc lp parport usbhid usb_storage hid ohci1394 ieee1394 tg3 ahci
[25593.631832] Pid: 1330, comm: umount Tainted: P 2.6.32-24-generic-pae #43-Ubuntu
[25593.631835] Call Trace:
[25593.631843] [<c01541a2>] warn_slowpath_common+0x72/0xa0
[25593.631850] [<c0236e30>] ? mark_buffer_dirty+0x70/0x90
[25593.631856] [<c0236e30>] ? mark_buffer_dirty+0x70/0x90
[25593.631861] [<c01541ea>] warn_slowpath_null+0x1a/0x20
[25593.631866] [<c0236e30>] mark_buffer_dirty+0x70/0x90
[25593.631871] [<c0288ca8>] ext2_sync_fs+0x38/0x90
[25593.631876] [<c02550b6>] sync_quota_sb+0x46/0xf0
[25593.631882] [<c01d38d3>] ? filemap_write_and_wait+0x43/0x50
[25593.631888] [<c0234cec>] __sync_filesystem+0x6c/0x80
[25593.631894] [<c0234dde>] sync_filesystems+0xde/0x110
[25593.631900] [<c022b08e>] sys_umount+0x8e/0xa0
[25593.631905] [<c0109763>] sysenter_do_call+0x12/0x28
[25593.631909] ---[ end trace 209b2d0e1ac0981a ]---

Revision history for this message
penalvch (penalvch) wrote :

Rob David, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the daily kernel folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.11.1

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

Changed in linux (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
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.