aes crypto not loaded by default, modprobe aes fails

Bug #799328 reported by Per Ångström
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I set up an ecryptfs volume some time ago, using aes crypto. Now, nearly six months later, after a few minor kernel upgrades, I'm unable to access the same volume from the same machine; the mount seemingly succeeds but the data remains encrypted. The only apparent anomaly in the mount process is the following:

Select cipher:
 1) aes: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)

Seeing that aes is not loaded (which I find strange), I try to load aes manually:

# modprobe -v aes
insmod /lib/modules/2.6.35-28-generic/kernel/arch/x86/crypto/aesni-intel.ko
WARNING: Error inserting aesni_intel (/lib/modules/2.6.35-28-generic/kernel/arch/x86/crypto/aesni-intel.ko): No such device
insmod /lib/modules/2.6.35-28-generic/kernel/drivers/crypto/padlock-aes.ko
WARNING: Error inserting padlock_aes (/lib/modules/2.6.35-28-generic/kernel/drivers/crypto/padlock-aes.ko): No such device

But I still get aes "(not loaded)".

# lsmod | grep aes
aes_x86_64 7936 3
aes_generic 27631 1 aes_x86_64

# find /lib/modules/2.6.35-28-generic/ -name 'aes*'
/lib/modules/2.6.35-28-generic/kernel/crypto/aes_generic.ko
/lib/modules/2.6.35-28-generic/kernel/arch/x86/crypto/aes-x86_64.ko
/lib/modules/2.6.35-28-generic/kernel/arch/x86/crypto/aesni-intel.ko

I will go back to an older kernel and see if that works better.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: linux-image-2.6.35-28-generic 2.6.35-28.50
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.35-28.50-generic 2.6.35.11
Uname: Linux 2.6.35-28-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC262 Analog [ALC262 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: pang 1924 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xc0000000 irq 47'
   Mixer name : 'Realtek ALC262'
   Components : 'HDA:10ec0262,18540120,00100002'
   Controls : 19
   Simple ctrls : 12
Date: Sun Jun 19 10:02:07 2011
HibernationDevice: RESUME=UUID=2a4d2eac-9fba-4760-849b-e366ea52a359
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
MachineType: LG Electronics P300-T.APE4V
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-28-generic root=UUID=f3749e3b-5821-4d21-ae59-c77182c19675 ro quiet splash
RelatedPackageVersions: linux-firmware 1.38.6
SourcePackage: linux
dmi.bios.date: 06/30/2008
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: ELGNSF18
dmi.board.name: ELGON
dmi.board.vendor: LG Electronics
dmi.board.version: Not Applicable
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LG Electronics
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvrELGNSF18:bd06/30/2008:svnLGElectronics:pnP300-T.APE4V:pvrNotApplicable:rvnLGElectronics:rnELGON:rvrNotApplicable:cvnLGElectronics:ct10:cvrN/A:
dmi.product.name: P300-T.APE4V
dmi.product.version: Not Applicable
dmi.sys.vendor: LG Electronics

Revision history for this message
Per Ångström (autark) wrote :
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Per Ångström (autark) wrote :

Kernel 2.6.35-22-generic gives the same problem. Strange!

Revision history for this message
Per Ångström (autark) wrote :

I think the problem lies with module aesni_intel.ko not being loadable:

# modprobe -v aesni_intel
insmod /lib/modules/2.6.35-28-generic/kernel/arch/x86/crypto/aesni-intel.ko
FATAL: Error inserting aesni_intel (/lib/modules/2.6.35-28-generic/kernel/arch/x86/crypto/aesni-intel.ko): No such device

From /var/log/messages:
Jun 19 11:31:15 barbaren kernel: [ 2772.272853] Intel AES-NI instructions are not detected.

Revision history for this message
Per Ångström (autark) wrote :

Any workaround? I'm sitting here with an unaccessible backup.

Revision history for this message
Per Ångström (autark) wrote :

Sorry, my bad! A bad password made me bark up the wrong tree. I am now able to access the encrypted backup.

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