Bug 721002

Summary: Upgrade to Kernel Linux 2.6.38.8-35.fc15.x86_64 from 8-32
Product: [Fedora] Fedora Reporter: Peter <eagleeyes426>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: adil452100, diods, fotios, fullung, gansalmon, itamar, jaime_rcz, jason, jk, jonathan, jvallep, jwboyer, kernel-maint, linux, madhu.chinakonda, massix, maurizio.antillon, pwouters, rderooy, sandro, smikkili, sshedmak, tb, torrenttrackets, tovz, try.with.code
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-3.1.0-0.rc3.git0.0.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-03 18:02:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter 2011-07-13 14:19:57 UTC
Description of problem:
On boot I now receive this message straight away:

alg: skcipher: Failed to load transform for ecb-aes-aesni: -2

Version-Release number of selected component (if applicable):
Linux 2.6.38.8-35.fc15.x86_64

How reproducible:
boot from Linux 2.6.38.8-35.fc15.x86_64 kernel

Steps to Reproduce:
1. Upgrade to Linux 2.6.38.8-35.fc15.x86_64
2. Boot
  
Actual results:
alg: skcipher: Failed to load transform for ecb-aes-aesni: -2

Expected results:
no error

Additional info:

Comment 1 Chuck Ebbert 2011-07-14 20:20:27 UTC
(In reply to comment #1)
> Description of problem:
> On boot I now receive this message straight away:
> 
> alg: skcipher: Failed to load transform for ecb-aes-aesni: -2
> 
> Version-Release number of selected component (if applicable):
> Linux 2.6.38.8-35.fc15.x86_64
> 
> How reproducible:
> boot from Linux 2.6.38.8-35.fc15.x86_64 kernel
> 
> Steps to Reproduce:
> 1. Upgrade to Linux 2.6.38.8-35.fc15.x86_64
> 2. Boot
> 
> Actual results:
> alg: skcipher: Failed to load transform for ecb-aes-aesni: -2
> 

And what does it do after that? Fail to finish booting?

Comment 2 Shelby 2011-07-15 02:27:56 UTC
I have the same thing happening to me on the same platform on the new Kernel.
(In reply to comment #1)
> (In reply to comment #1)
> > Description of problem:
> > On boot I now receive this message straight away:
> > 
> > alg: skcipher: Failed to load transform for ecb-aes-aesni: -2
> > 
> > Version-Release number of selected component (if applicable):
> > Linux 2.6.38.8-35.fc15.x86_64
> > 
> > How reproducible:
> > boot from Linux 2.6.38.8-35.fc15.x86_64 kernel
> > 
> > Steps to Reproduce:
> > 1. Upgrade to Linux 2.6.38.8-35.fc15.x86_64
> > 2. Boot
> > 
> > Actual results:
> > alg: skcipher: Failed to load transform for ecb-aes-aesni: -2
> > 
> 
> And what does it do after that? Fail to finish booting?

Chuck, after the error shows up Fedora 1(w/gnome 3) boots and I can see no *visible* problem but the error always shows up.

Comment 3 Adil Lebbat 2011-07-15 14:37:20 UTC
(In reply to comment #0)
> Description of problem:
> On boot I now receive this message straight away:
> 
> alg: skcipher: Failed to load transform for ecb-aes-aesni: -2
> 
> Version-Release number of selected component (if applicable):
> Linux 2.6.38.8-35.fc15.x86_64
> 
> How reproducible:
> boot from Linux 2.6.38.8-35.fc15.x86_64 kernel
> 
> Steps to Reproduce:
> 1. Upgrade to Linux 2.6.38.8-35.fc15.x86_64
> 2. Boot
> 
> Actual results:
> alg: skcipher: Failed to load transform for ecb-aes-aesni: -2
> 
> Expected results:
> no error
> 
> Additional info:

I have the same issue (error message at boot) after a kernel update to 2.6.38.8-35.fc15.x86_64

Comment 4 javier del valle 2011-07-16 06:03:59 UTC
I too have the same problem but the computer hungs at the graphic nvidia screen during startup.

Comment 5 Peter 2011-07-17 09:09:42 UTC
> 
> And what does it do after that? Fail to finish booting?

No it boots and all is well in the world :)

Just reporting this new bug that has popped up in transition to the new kernel. Not sure if it would cause issues booting for those people with encrypted disks - I don't have any so no problem for me apart from the error.

Comment 6 javier del valle 2011-07-19 15:00:49 UTC
In my case it does fail finish booting. After several minutes I've switched off the computer an rstarted with the 2.6.38.8-32.fc15.x86_64 kernel. Also I've marked the 2.6.38.8-35.fc15.x86_64 version in order yo avoid beeing loaded again.

Comment 7 Robert de Rooy 2011-07-25 08:08:20 UTC
Seeing the same thing, just before plymouth takes over. In addition there is another related error just after it.

alg: skcipher: Failed to load transform for ecb-aes-aesni: -2
alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)

kernel-2.6.38.8-35.fc15.x86_64 on a ThinkPad T410

The system does continue to boot, and I have not noticed any further issues from this.

Comment 8 Robert de Rooy 2011-07-25 08:13:49 UTC
It seems, looking at bug 589390 that this may be fixed upstream in kernel 3.0

Comment 9 Josh Boyer 2011-08-01 11:39:48 UTC
(In reply to comment #8)
> It seems, looking at bug 589390 that this may be fixed upstream in kernel 3.0

You might try the 2.6.40-4 kernel that is in updates-testing for F15.  That is 3.0 rebranded.

Comment 10 Robert de Rooy 2011-08-01 12:19:04 UTC
Just tried it, but I am still getting the exact same failure.

Comment 11 Massimo Di Primio 2011-08-04 11:42:10 UTC
Same problem here with kernel 2.6.40-4.fc15.x86_64
Also mentioned in my /var/log/boot.log: 
Aug  4 12:15:40 kiowa kernel: [    0.963618] alg: skcipher: Failed to load transform for ecb-aes-aesni: -2

Comment 12 diods 2011-08-05 08:12:39 UTC
same here goes for both kernel :

2.6.38.8-35.fc15.x86_64
2.6.40-4.fc15.x86_64

am still using the old kernel it seems to work fine 2.6.38.8-32.fc15.x86_64

Comment 13 tony 2011-08-05 22:43:08 UTC
I'm getting the same error message on boot up and shutdown.

skcipher: Failed to load transform for ecb-aes-aesni: -2

Comment 14 Jaime RCZ 2011-08-09 15:38:24 UTC
Just updated to 2.6.40-4.f15.x86_64, and I get the same error.
After that everything appears to be working fine.

Comment 15 Josh Boyer 2011-08-09 20:18:43 UTC
There appears to be some kind of race between the AES_NI_INTEL module and the crypto manager framework.  I've asked upstream about this.

Comment 16 Sandro Mathys 2011-08-10 08:29:45 UTC
FYI: This message also shows up with F16 Alpha TC1/RC1/RC2/RC3.

Comment 17 Fun Xue 2011-08-11 05:24:47 UTC
Same error message here with 2.6.38.8-35.fc15.x86_64 when upgraded from kernel 2.6.38.6-26-rc1.fc15.x86_64.

Although the system can boot, I can no longer connect to our corporate wireless network which uses WPA2-Enterprise with AES encryption; the NetworkManager keeps asking for my account information. Before the upgrade, the system with kernel 2.6.38.6-26 was able to connect to the wireless network; after the upgrade to 2.6.38.8-35, neither can connect.

Would this problem be related to this ecb-aes-aesni error?
Thanks!

Comment 18 Josh Boyer 2011-08-19 12:51:00 UTC
Upstream has provided a patch and I've committed it to the kernel branches.  It should be in the next rebuild.

Comment 19 Fedora Update System 2011-08-23 11:05:08 UTC
kernel-3.1.0-0.rc3.git0.0.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/kernel-3.1.0-0.rc3.git0.0.fc16

Comment 20 Fedora Update System 2011-08-23 13:31:10 UTC
Package kernel-3.1.0-0.rc3.git0.0.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kernel-3.1.0-0.rc3.git0.0.fc16'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/kernel-3.1.0-0.rc3.git0.0.fc16
then log in and leave karma (feedback).

Comment 21 Vadim 2011-08-27 10:51:35 UTC
I also have an error 
"alg: skcipher: Failed to load transform for ecb-aes-aesni: -2" , after update, and system doesn't boot.
In the rescue mode I have installed kernel-3.1.0-0.rc3.git0.0.fc16, but it doesn't work too with similar error:
"xhci-ncd 000:02:00.0 Failed to enable MSI-X" 

In the result I've switched the kernel to 2.6.38 version.


In the process of setting up my server I also tried Fedora16-Alfa.
In the process of setup on some stage has been shown an error, like with 2.6.40 kernel, but the installation was going on.
(Also one note for someone who interested about Fedora16-alpha: I had problem with RAID on Samsung disks.
After of selection of RAID1 in setup process, installator said somewhat like: "disk has raid information but it doesn't participate in the RAID" and installation had failed. Fedora15 uses this RAID without problems)

Comment 22 Josh Boyer 2011-08-27 11:54:56 UTC
(In reply to comment #21)
> I also have an error 
> "alg: skcipher: Failed to load transform for ecb-aes-aesni: -2" , after update,
> and system doesn't boot.

I'm guessing this was with a kernel that didn't have the fix.

> In the rescue mode I have installed kernel-3.1.0-0.rc3.git0.0.fc16, but it
> doesn't work too with similar error:
> "xhci-ncd 000:02:00.0 Failed to enable MSI-X" 

That error isn't similar at all.  It is entirely unrelated to this bug.

Comment 23 Fedora Update System 2011-08-28 05:36:53 UTC
kernel-3.1.0-0.rc3.git0.0.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 24 Vadim 2011-08-29 10:03:41 UTC
I repeated the update procedure from  Fedora 16 stable repository.
kernel-3.1.0-0.rc3.git0.0.fc16 has an error such as I reported before: "xhci-ncd 000:02:00.0 Failed to enable MSI-X" right after when messages were available on the screen.
First time my system was loaded (with error message), but then, on next loadings, was stopped, with message in the end:
"Dropping to debug shell
sh: Can't access tty; job control turned off"

I mentioned that this bug is similar because booting of systems in two cases was stopped on the same stage (or like stage).

Please do something, since Fedora15 has another bug https://bugzilla.redhat.com/show_bug.cgi?id=729340 , which was fixed in the kernel-2.6.40.3-0.fc15 and which(kernel)I can't use too.
(Excuse me for that proposal, but perhaps it is possible to make kernel-2.6.39 which will be just kernel-2.6.38 with fixed bug 729340, if work about kernel-3.1.0 will take too many time)

Comment 25 Josh Boyer 2011-08-29 11:09:13 UTC
Vadim, please open a new bug for your issues.  They are unrelated to this bug.

Also, 729340 is fixed in 3.1-rc3 already.

Comment 26 Jason Brooks 2011-08-31 20:45:28 UTC
I'm getting this issue on a Lenovo w520. Interestingly, the system boots fine with integrated graphics, but hangs at the alg: skcipher: Failed to load transform for ecb-aes-aesni: -2 error with discrete graphics. 

Unfortunately, discrete graphics appear to be required for external monitor support.

Am I correct in understanding that the only fix for this issue is upgrading to F16? I've not been able to successfully install F16 alpha on this machine. :(

Comment 27 Josh Boyer 2011-08-31 20:51:18 UTC
(In reply to comment #26)
> Am I correct in understanding that the only fix for this issue is upgrading to
> F16? I've not been able to successfully install F16 alpha on this machine. :(

No, 2.6.40.3-2.fc15 or newer on f15 should have the fix as well.

Comment 28 Jason Brooks 2011-08-31 21:20:00 UTC
Thanks, Josh. I just grabbed 2.6.40-4 from http://koji.fedoraproject.org/koji/buildinfo?buildID=256252, and I'm getting the same behavior.

Comment 29 Josh Boyer 2011-08-31 21:56:05 UTC
(In reply to comment #28)
> Thanks, Josh. I just grabbed 2.6.40-4 from
> http://koji.fedoraproject.org/koji/buildinfo?buildID=256252, and I'm getting
> the same behavior.

That's because it's not 2.6.40.3-2.fc15 or newer.  That extra .3 is important.  Just use this one:

http://koji.fedoraproject.org/koji/buildinfo?buildID=261186

Comment 30 Jason Brooks 2011-08-31 22:14:39 UTC
> 
> That's because it's not 2.6.40.3-2.fc15 or newer.  That extra .3 is important.

Thanks! I wondered whether I was reading my dots and dashes wrong. The error message is gone, but it look like my discrete graphics booting bug was unrelated, because I'm still getting the hang.

I'll see if it's been reported elsewhere, and file a bug if not.

Comment 31 Peter 2011-09-01 02:05:16 UTC
(In reply to comment #30)
> > 
> > That's because it's not 2.6.40.3-2.fc15 or newer.  That extra .3 is important.
> 
> Thanks! I wondered whether I was reading my dots and dashes wrong. The error
> message is gone, but it look like my discrete graphics booting bug was
> unrelated, because I'm still getting the hang.
> 
> I'll see if it's been reported elsewhere, and file a bug if not.

Hi buddy,

Yeah the hang is unrelated to this bug - the discreet graphics error is what is causing your problem and would be related to your video card drivers. Gnome Shell is pretty particular about having working video drivers although it should have given you an option to fall back to gnome fallback which isn't as particular...

Do a search for your particular laptop and video drivers for that and you should be able to muddle through it

Comment 32 Fedora Update System 2011-09-01 11:06:25 UTC
kernel-2.6.40.4-5.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/kernel-2.6.40.4-5.fc15

Comment 33 Vadim 2011-09-02 09:55:30 UTC
kernel-2.6.40.4-5.fc15 doesn't work on my system.

It has booted first time after the installation of 2.6.40.4-5 , but next times the loading of system was failed with no any messages on the screen, except for  final message:
"Dropping to debug shell
sh: Can't access tty; job control turned off"

First time (when the system was loaded successfully) during the boot I saw the message on the screen: 
"xhci-ncd 000:02:00.0 Failed to enable MSI-X" among other messages (not on the top), but this message has not been written down in the boot.log.
The message "Failed to enable MSI-X" is also on kernel  2.6.38 , but this kernel works.

Comment 34 Josh Boyer 2011-09-02 11:16:07 UTC
(In reply to comment #33)
> kernel-2.6.40.4-5.fc15 doesn't work on my system.
> 
> It has booted first time after the installation of 2.6.40.4-5 , but next times
> the loading of system was failed with no any messages on the screen, except for
>  final message:
> "Dropping to debug shell
> sh: Can't access tty; job control turned off"
> 
> First time (when the system was loaded successfully) during the boot I saw the
> message on the screen: 
> "xhci-ncd 000:02:00.0 Failed to enable MSI-X" among other messages (not on the
> top), but this message has not been written down in the boot.log.
> The message "Failed to enable MSI-X" is also on kernel  2.6.38 , but this
> kernel works.

That is entirely unrelated to this bug.  Please open a new one as I said in comment #25

Comment 35 Vadim 2011-09-02 12:27:52 UTC
Statements about "MSI-X" just a note.
Mostly I wanted to report, that kernel-2.6.40.4-5.fc15 doesn't work at all.

Comment 36 Fedora Update System 2011-09-07 00:00:32 UTC
kernel-2.6.40.4-5.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 37 Vadim 2011-09-07 18:07:30 UTC
Painfully to speak, but this kernel doesn't work on my system (Asrock H67M-GE,I5-2400S,fake RAID1 on too HD154UI)
Message on the screen:
"
Dropping to debug shell
sh: Can't access tty; job control turned off
dracut:/#
"

Comment 38 Fotios Lindiakos 2011-09-16 14:57:48 UTC
Unfortunately I am still getting this error as well:
[fotios@fotios ~]$ sudo grep aes /var/log/messages
Sep 13 07:54:02 fotios kernel: [    0.801907] alg: skcipher: Failed to load transform for ecb-aes-aesni: -2
Sep 13 07:54:02 fotios kernel: [    0.802065] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
Sep 16 10:17:51 fotios kernel: [    0.792011] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
Sep 16 10:47:09 fotios kernel: [    0.792229] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
[fotios@fotios ~]$ uname -a
Linux fotios.redhat.com 2.6.40.4-5.fc15.x86_64 #1 SMP Tue Aug 30 14:38:32 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

I am using a Lenovo T520

Comment 39 Josh Boyer 2011-09-16 15:14:13 UTC
(In reply to comment #38)
> Unfortunately I am still getting this error as well:
> [fotios@fotios ~]$ sudo grep aes /var/log/messages
> Sep 13 07:54:02 fotios kernel: [    0.801907] alg: skcipher: Failed to load
> transform for ecb-aes-aesni: -2
> Sep 13 07:54:02 fotios kernel: [    0.802065] alg: No test for __gcm-aes-aesni
> (__driver-gcm-aes-aesni)

There's a 3 day gap in your logs here.  Did you upgrade and reboot?

> Sep 16 10:17:51 fotios kernel: [    0.792011] alg: No test for __gcm-aes-aesni
> (__driver-gcm-aes-aesni)
> Sep 16 10:47:09 fotios kernel: [    0.792229] alg: No test for __gcm-aes-aesni
> (__driver-gcm-aes-aesni)

Note that the first message "alg: skcipher: Failed to load transform for ecb-aes-aesni: -2" doesn't show up in the Sep 16 version.  That is what this bug fixed.  The "No test for" aren't errors.

Comment 40 Fotios Lindiakos 2011-09-16 15:51:33 UTC
You're right, my mistake. Thank you.

Comment 41 Paul Wouters 2012-04-02 20:29:07 UTC
I still get this error when using fips=1

This is with 3.0.0-8 on an Lenovo X201 with intel aesni

How to repeat:

yum install dracut-fips dracut-fips-aesni

This is with dracut.conf modified with:

add_dracutmodules="masterkey integrity securityfs crypt-gpg fips fips-aesni"

and the fixes from Steve Grub at https://bugzilla.redhat.com/show_bug.cgi?id=808744

Comment 42 Josh Boyer 2012-04-03 18:02:05 UTC
(In reply to comment #41)
> I still get this error when using fips=1
> 
> This is with 3.0.0-8 on an Lenovo X201 with intel aesni
> 
> How to repeat:
> 
> yum install dracut-fips dracut-fips-aesni
> 
> This is with dracut.conf modified with:
> 
> add_dracutmodules="masterkey integrity securityfs crypt-gpg fips fips-aesni"
> 
> and the fixes from Steve Grub at
> https://bugzilla.redhat.com/show_bug.cgi?id=808744

Paul, I'd prefer we track this in a new bug.  This bug has been closed for a while and is correctly closed out as fixed.  The issue you mention is only present with fips mode afaik.

Comment 43 Albert Strasheim 2012-11-05 12:14:17 UTC
There was a discussion here pointing to this bug:

https://lkml.org/lkml/2011/8/9/338

Seeing a similar thing with kernel-3.6.3-1.fc17.x86_64

alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)

Is there a new bug somewhere?