You are not logged in.

#1 2008-03-22 19:46:22

Snork
Member
Registered: 2007-06-28
Posts: 11

Sorta Fixed: Warning: Error inserting padlock_aes .. No such device

Since upgrading to 2.6.24.x kernel I've been seeing this on boot with encrypted swap (an old Great Quality PC I bought at Fry's a few years ago:

modprobe: Warning: Error inserting padlock_aes (/lib/modules/2.6.24-ARCH/kernel/drivers/crypto/padlock-aes.ko): No such device

modprobe: Warning: Error inserting padlock_sha (/lib/modules/2.6.24-ARCH/kernel/drivers/crypto/padlock-sha.ko): No such device

My /etc/cryptab:
swap       /dev/sda2          SWAP               -c aes-cbc-essiv:sha256 -s 256

I had no problems with the 2.6.22 or 2.6.23 kernels.

I found a reference on the web to entries in modules.alias, so did some looking:

   awk '/aes|sha/ && !/pci/' /lib/modules/2.6.23-ARCH/modules.alias
alias sha384 sha512
alias sha256-generic sha256
alias sha1-generic sha1
alias sha256-padlock padlock_sha
alias sha1-padlock padlock_sha
alias aes-padlock padlock_aes
alias aes aes_i586

   grep padlock /lib/modules/2.6.23-ARCH/modules.alias
alias sha256-padlock padlock_sha
alias sha1-padlock padlock_sha
alias aes-padlock padlock_aes

   awk '/aes|sha/ && !/pci/' /lib/modules/2.6.24-ARCH/modules.alias
alias sha256 sha256_generic
alias sha384 sha512
alias aes aes_generic
alias sha1 sha1_generic
alias sha256-padlock padlock_sha
alias sha1-padlock padlock_sha
alias sha256 padlock_sha
alias sha1 padlock_sha
alias aes padlock_aes
alias aes aes_i586

   grep padlock /lib/modules/2.6.24-ARCH/modules.alias
alias sha256-padlock padlock_sha
alias sha1-padlock padlock_sha
alias sha256 padlock_sha
alias sha1 padlock_sha
alias aes padlock_aes

# The "fix"

cp /lib/modules/2.6.24-ARCH/modules.alias ~/BU.modules.alias.bu

vi /lib/modules/2.6.24-ARCH/modules.alias

DELETE:
alias sha256 padlock_sha
alias sha1 padlock_sha
CHANGE:
alias aes padlock_aes
TO:
alias aes-padlock padlock_aes

# After 2.6.24.3-3 kernel upgrade:

   awk '/aes|sha/ && !/pci/' /lib/modules/2.6.24-ARCH/modules.alias
alias sha256-padlock padlock_sha
alias sha1-padlock padlock_sha
alias sha256 padlock_sha
alias sha1 padlock_sha
alias aes padlock_aes
alias aes aes_i586
alias sha384 sha512
alias sha256 sha256_generic
alias sha1 sha1_generic
alias aes aes_generic

# After edit:

   diff ~/BU.modules.alias.bu /lib/modules/2.6.24-ARCH/modules.alias
5449,5451c5449
< alias sha256 padlock_sha
< alias sha1 padlock_sha
< alias aes padlock_aes
---
> alias aes-padlock padlock_aes

Boot up is clean.

It appears to me this is an upstream problem, as I've seen complaints about the modprobe error messages from users of other distros.  The little bit I understand of this is the alias file is constructed based on what's in the module, so it looks like either the module needs work or the extraction proc needs work.

I was wondering if some of you kernel-jockeys could provide more insight, as I don't spend any time playing with the kernel.

Snork


I don't want to be the Go-To Guy.  I want to be the Go-Past Guy.  He's
        the guy you rush past on your way to bother the first guy.
                Me, 08/05

Offline

#2 2008-03-22 20:28:53

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Sorta Fixed: Warning: Error inserting padlock_aes .. No such device

Yes, it's upstream. If you're very concerned, get on lkml.org and see if anyone's talking about it. The messages you are getting are warnings, as you can see - simply the kernel's way of telling you that you do not have the appropriate hardware for the padlock modules. The modules are not loaded, and therefore have no effect on your system's performance.

Rather than edit modules.alias, I'd recommend blacklisting the padlock modules in /etc/modprobe.conf.

Offline

#3 2008-03-30 18:03:06

chendler
Member
Registered: 2007-03-05
Posts: 13

Re: Sorta Fixed: Warning: Error inserting padlock_aes .. No such device

For me that:

[root@atlantis ~]# cat modules.alias.diff
329,331c329
< alias sha256 padlock_sha
< alias sha1 padlock_sha
< alias aes padlock_aes
---
> alias aes-padlock padlock_aes

doesn't work, still wants to insert the padlock_aes neutral I have root encrypted

Last edited by chendler (2008-03-30 18:28:02)

Offline

#4 2008-10-09 09:44:23

aneiser
Member
Registered: 2008-07-21
Posts: 59

Re: Sorta Fixed: Warning: Error inserting padlock_aes .. No such device

You can have a look at the solution here:
http://bbs.archlinux.org/viewtopic.php? … 81#p431381
Hth

Offline

Board footer

Powered by FluxBB