Module aesni_intel not being loaded before mounting LVM2 stacked on LUKS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Hi,
I've made an installation of Ubuntu 11.10 on a system with AES-NI instructions only to find that the aesni_intel module is not being loaded before mounting the root file system, leaving the system with software encryption instead of using the hardware capabilities.
The problem I think it's due to the modules not existing on the initramfs. Naturally, aes_x86_64 and cryptd modules aren't loaded too.
Having the kernel compiled with options
CONFIG_CRYPTO_AES=y
CONFIG_
CONFIG_
instead of
CONFIG_CRYPTO_AES=y
CONFIG_
CONFIG_
as it appears on "config-
I can manually load those modules after the system boots, but then it's not useful for my fully encrypted filesystem.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: linux-image (not installed)
ProcVersionSign
Uname: Linux 3.0.0-14-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
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/
CRDA: Error: [Errno 2] No existe el archivo o el directorio
Card0.Amixer.info:
Card hw:0 'PCH'/'HDA Intel PCH at 0xdf000000 irq 49'
Mixer name : 'Intel CougarPoint HDMI'
Components : 'HDA:10ec0269,
Controls : 22
Simple ctrls : 12
Date: Sat Dec 24 14:06:12 2011
HibernationDevice: RESUME=
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
MachineType: ASUSTeK Computer Inc. N53SN
ProcEnviron:
PATH=(custom, no user)
LANG=es_ES.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.60
SourcePackage: linux
StagingDrivers: mei
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/10/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: N53SN.208
dmi.board.
dmi.board.name: N53SN
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: N53SN
dmi.product.
dmi.sys.vendor: ASUSTeK Computer Inc.
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
affects: | cryptsetup (Ubuntu) → linux (Ubuntu) |
information type: | Public → Public Security |
information type: | Public Security → Public |
I've put temporaly the modules on /etc/initramfs- tools/modules and then updated the initramfs of the latest kernel installed:
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax: module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
cryptd
aes_x86_64
aesni_intel
Now they are being loaded on startup as should be. Prove of that is that the aesni_intel module now can't be unloaded due to it being in use:
raul@n53sn: /etc/initramfs- tools$ sudo rmmod aesni_intel /etc/initramfs- tools$
[sudo] password for raul:
ERROR: Module aesni_intel is in use
raul@n53sn: