decrypt_keyctl crashes kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Hi,
I have a computer with an encrypted raid array (encrypted inside mdadm raid, and lvm inside encrypted device), thus just a single encrypted device. Worked pretty well for years.
Recently, I've added a small SSD as a system disk with root and swap to make the machine faster. Now I had three encrypted block devices. Since it was annoying to enter the same password three times, I changed the /etc/crypttab into
sdc3_crypt UUID=cdb53b1b-
sdc2_crypt UUID=b800eec1-
md1_crypt UUID=a59b9b7e-
to enter the password only once per boot.
Now, the system wasn't booting properly anymore. It came to asking for the password in a regular way, but once I entered the password, system went berserk. It either froze completely, or ignored most of the keyboard keys, became extremely slow, sometimes came to the init processes, but hang. Even if I was lucky enough to get a rescue root shell, system did not work properly, it just did not make any sense and seemed somewhat crazy. Impossible to use, and extremely slow.
Problems were permanent and happened with every boot, although differing, but were completely gone after I used a rescue CDROM to change the /etc/crypttab to its original state
sdc3_crypt UUID=cdb53b1b-
sdc2_crypt UUID=b800eec1-
md1_crypt UUID=a59b9b7e-
and rebuild the initramdisk. Now the system works just normal again (and keeps asking me for the password three times).
So it pretty much looks as if decrypt_keyctl is somewhat incompatible with the kernel and somehow breaks kernel structures.
regards
Hadmut
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: cryptsetup 2:1.6.1-1ubuntu1
ProcVersionSign
Uname: Linux 3.13.0-43-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Jan 22 22:10:21 2015
SourcePackage: cryptsetup
UpgradeStatus: No upgrade log present (probably fresh install)
crypttab:
sdc3_crypt UUID=cdb53b1b-
sdc2_crypt UUID=b800eec1-
md1_crypt UUID=a59b9b7e-
tags: | added: vivid |
Changed in cryptsetup (Ubuntu): | |
importance: | Undecided → Medium |
Same problem here on Ubuntu 15.04 Server.
With decrypt-script defined in crypttab system freezes while booting.
Setup was done according to this Ubuntu-Wiki article: /wiki.ubuntuuse rs.de/System_ verschl% C3%BCsseln/ Entschl% C3%BCsseln_ mit_einem_ USB-Schl% C3%BCssel
https:/