ecryptfs kernel panic when rebooting/shutdown

Bug #816387 reported by Alexandre
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux
Fix Released
Medium
eCryptfs
Fix Released
High
Tyler Hicks
linux (Ubuntu)
Fix Released
High
John Johansen
Oneiric
Fix Released
High
John Johansen

Bug Description

I keep getting lots of kernel panic, using ubuntu natty stock kernels and kernels from kernel-ppa :
2.6.38-8, 2.6.38-10, 2.6.39-0 and even 3.0 kernel.

It's odd that it spans so widely. Each time I took a picture of the laptop screen, and it seems to be related very closely to ecryptfs (which I use for a 550GB /home partition).

The bug is reproductible 100% of the time : I just need to order the system to shutdown or reboot : I get a kernel panic everytime.

Screen pictures are attached.
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: acid 1995 F.... pulseaudio
CRDA: Error: [Errno 2] Aucun fichier ou dossier de ce type
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xc4820000 irq 48'
   Mixer name : 'Intel CougarPoint HDMI'
   Components : 'HDA:10ec0269,1179062e,00100100 HDA:80862805,11790001,00100000'
   Controls : 25
   Simple ctrls : 11
DistroRelease: Ubuntu 11.04
EcryptfsInUse: Yes
InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427)
MachineType: TOSHIBA PORTEGE R830
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-2.6.38-10-generic root=UUID=7a7fd95c-bb4c-4373-8587-e0fdb5ec4040 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-10-generic N/A
 linux-backports-modules-2.6.38-10-generic N/A
 linux-firmware 1.52
StagingDrivers: keucr
Tags: natty staging
Uname: Linux 2.6.38-10-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare vboxusers
dmi.bios.date: 04/04/2011
dmi.bios.vendor: TOSHIBA
dmi.bios.version: Version 2.30
dmi.board.asset.tag: 0000000000
dmi.board.name: Portable PC
dmi.board.vendor: TOSHIBA
dmi.board.version: Version A0
dmi.chassis.asset.tag: 0000000000
dmi.chassis.type: 10
dmi.chassis.vendor: TOSHIBA
dmi.chassis.version: Version 1.0
dmi.modalias: dmi:bvnTOSHIBA:bvrVersion2.30:bd04/04/2011:svnTOSHIBA:pnPORTEGER830:pvrPT320E-02D00PFR:rvnTOSHIBA:rnPortablePC:rvrVersionA0:cvnTOSHIBA:ct10:cvrVersion1.0:
dmi.product.name: PORTEGE R830
dmi.product.version: PT320E-02D00PFR
dmi.sys.vendor: TOSHIBA

Revision history for this message
Alexandre (ab-linuxfr) wrote :
Revision history for this message
Alexandre (ab-linuxfr) wrote :
Revision history for this message
Alexandre (ab-linuxfr) wrote :
Revision history for this message
Alexandre (ab-linuxfr) wrote :
Revision history for this message
Alexandre (ab-linuxfr) wrote :

I forgot to mention I'm using a Toshiba Portégé R830 Laptop, 8 GB RAM, 750GB hd.
This bug happens on the same computer, but different harddisk (I had to change it after another kernel panic mi-july..).

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Adding Ubuntu/linux task. Marking high, as this is a Panic.

Changed in linux (Ubuntu):
importance: Undecided → High
Changed in ecryptfs:
importance: Undecided → High
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 816387

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Alexandre (ab-linuxfr) wrote : AcpiTables.txt

apport information

tags: added: apport-collected natty staging
description: updated
Revision history for this message
Alexandre (ab-linuxfr) wrote : AlsaDevices.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : AplayDevices.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : BootDmesg.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : Card0.Codecs.codec.3.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : IwConfig.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : Lspci.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : Lsusb.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : PciMultimedia.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : ProcCpuinfo_.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : ProcModules.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : RfKill.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : UdevDb.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : UdevLog.txt

apport information

Revision history for this message
Alexandre (ab-linuxfr) wrote : WifiSyslog.txt

apport information

Alexandre (ab-linuxfr)
Changed in ecryptfs:
status: New → Confirmed
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Alexandre (ab-linuxfr) wrote :

I don't know if this is related, but I got two other kind of kernel panic :
- one with 2.6.38-8 with a usb modem-manager problem it seems (usb_submit_urb), and
- one with 2.6.39-0 still with usb modem-manager (__wake_up_common).

Should I post those pictures too ?

Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 816387] Re: ecryptfs kernel panic when rebooting/shutdown

> Should I post those pictures too ?

Yes, please.

Revision history for this message
Alexandre (ab-linuxfr) wrote :

The fisrt one

Revision history for this message
Alexandre (ab-linuxfr) wrote :

and the second one.

Revision history for this message
Tyler Hicks (tyhicks) wrote :

Thanks for taking the time to upload the photos, Alexandre.

I can't reproduce this bug, but I've seen another report of this happening: https://bugzilla.kernel.org/show_bug.cgi?id=37292

I've uploaded a proposed patch to that bug, which can be found at: https://bugzilla.kernel.org/attachment.cgi?id=66942

If someone that can consistently reproduce this bug would give that patch a shot, I'm pretty confident that it is the fix for this bug.

Changed in ecryptfs:
assignee: nobody → Tyler Hicks (tyhicks)
Revision history for this message
Alexandre (ab-linuxfr) wrote :

I could do that, but it's been perhaps 8 years since I compiled my own kernel, so I need a refresher !

First, against which source should I use the patch ? 3.0 ? 2.6.38 ?
Then, how to apply it ? Then I guess `make oldconfig` is the way to go ? Or perhaps one of those magical cmdline which create nice debs ?

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

John,

I just subscribed you to this bug. Here's a kernel panic reported by a user, and a patch that Tyler would like tested, but he's unable to reproduce the issue.

The reporter here can reproduce the bug reliably, but cannot easily build a kernel.

Could you please upload a test kernel into a PPA or somewhere to make Tyler's proposed fix testable?

Thanks!

Changed in linux (Ubuntu):
assignee: nobody → John Johansen (jjohansen)
Changed in ecryptfs:
status: Confirmed → In Progress
Changed in linux (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Joe Burgess (joemburgess) wrote :

Thanks for taking the time to report this bug in the upstream bug tracking system this is a tremendous help. Launchpad has the ability to watch lots of upstream bug trackers and this can be done by following the procedure documented at https://wiki.ubuntu.com/Bugs/Watches. I've added the bug watch for this bug report.

Changed in linux:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Alexandre (ab-linuxfr) wrote :

On a sidenote, I don't know if it's related, but I tried to memtest my 8GB of RAM to check if the other random crashes I experience could be caused by those.

For some unknown reasons, whenever I choose "Memtest86" or "Memtest86 serial console" in the grub2 menu, it opens the Memtest screen, then it freezes (except the little red "+" sign next to "Memtest" in the upper part of the screen which continues to blink, and my fan goes up like crazy...leaving me no choice but to hard reset the laptop.

I'll try when I'll have more time to use memtest from a liveusb.

Screenshot of the faulty memtest attached.

Bonus : more kernel panic screenshots following

Revision history for this message
Alexandre (ab-linuxfr) wrote :
Revision history for this message
Alexandre (ab-linuxfr) wrote :
Revision history for this message
Alexandre (ab-linuxfr) wrote :

For info, most of the time I can use the REISUB command to reboot my computer even after the kernel panic.

Revision history for this message
Alexandre (ab-linuxfr) wrote :

It's totally insane the number of kernel panic I'm getting on that computer !!

This time it happened when trying to unmount an external hd. I doubt it's related to the previous KP, but why not post it here...

:'(

12 years I use Linux, never so that many kernel panic in the last 2 months.
Funny point : I bought the exact same computer for my wife and installed the same kubuntu distribution on it, and it rolls without any problem (though, I use a lot more different applications, but same kernel and no ecryptsfs..).

Changed in linux:
status: Confirmed → Fix Released
Revision history for this message
Alexandre (ab-linuxfr) wrote :

Is there a test kernel ppa somewhere for testing this patch ?

Revision history for this message
Tyler Hicks (tyhicks) wrote :

Please note that proposed fix that I mentioned in comment #32 didn't fix the issue.

The proper fix for this was released in 3.1-rc2 and can be found here:
http://git.kernel.org/linus/f61500e000eedc0c7a0201200a7f00ba5529c002

Changed in ecryptfs:
status: In Progress → Fix Released
Revision history for this message
Alexandre (ab-linuxfr) wrote :

The link posted in #42 seems to be broken.

Revision history for this message
Tyler Hicks (tyhicks) wrote :

git.kernel.org looks to be down right now. I'll attach the patch for those of you who want the patch before git.kernel.org comes back up.

tags: added: rls-mgr-o-tracking
Revision history for this message
Brian Murray (brian-murray) wrote :

The attachment [PATCH] eCryptfs: Return error when lower file pointer is NULL of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report. [This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Changed in linux (Ubuntu Oneiric):
status: Triaged → Fix Released
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.