* cryptsetup: "FATAL" padlock_{aes,sha} error during boot
@ 2011-07-28 12:03 Ralf Jung
2011-07-30 6:13 ` Herbert Xu
0 siblings, 1 reply; 5+ messages in thread
From: Ralf Jung @ 2011-07-28 12:03 UTC (permalink / raw)
To: linux-crypto; +Cc: 485070, katzj
Hi,
as per request of Jonathan at http://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=485070, I am reporting the mentioned bug to this list as
well:
With current Debian testing (Kernel 2.6.39), I am getting this error on each
boot:
FATAL: Error inserting padlock_sha (/lib/modules/2.6.39-2-
amd64/kernel/drivers/crypto/padlock-sha.ko): No such device
I understand it is harmless, but it should still be fixed since it irritates
users suggesting something is seriously going wrong.
No patch though, sorry, compiling and botting a custom kernel still sounds
like black magic for me ;-)
Kind regards,
Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: cryptsetup: "FATAL" padlock_{aes,sha} error during boot
2011-07-28 12:03 cryptsetup: "FATAL" padlock_{aes,sha} error during boot Ralf Jung
@ 2011-07-30 6:13 ` Herbert Xu
2011-07-30 9:15 ` Bug#485070: " Ben Hutchings
2011-07-30 11:50 ` [PATCH] crypto: padlock-aes - Make module loading even quieter when hardware is missing Jonathan Nieder
0 siblings, 2 replies; 5+ messages in thread
From: Herbert Xu @ 2011-07-30 6:13 UTC (permalink / raw)
To: Ralf Jung; +Cc: linux-crypto, 485070, katzj
Ralf Jung <ralfjung-e@gmx.de> wrote:
> Hi,
>
> as per request of Jonathan at http://bugs.debian.org/cgi-
> bin/bugreport.cgi?bug=485070, I am reporting the mentioned bug to this list as
> well:
>
> With current Debian testing (Kernel 2.6.39), I am getting this error on each
> boot:
> FATAL: Error inserting padlock_sha (/lib/modules/2.6.39-2-
> amd64/kernel/drivers/crypto/padlock-sha.ko): No such device
> I understand it is harmless, but it should still be fixed since it irritates
> users suggesting something is seriously going wrong.
That message comes from user-space and needs to be fixed there.
Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug#485070: cryptsetup: "FATAL" padlock_{aes,sha} error during boot
2011-07-30 6:13 ` Herbert Xu
@ 2011-07-30 9:15 ` Ben Hutchings
2011-07-30 11:50 ` [PATCH] crypto: padlock-aes - Make module loading even quieter when hardware is missing Jonathan Nieder
1 sibling, 0 replies; 5+ messages in thread
From: Ben Hutchings @ 2011-07-30 9:15 UTC (permalink / raw)
To: Herbert Xu, 485070-done; +Cc: Ralf Jung, linux-crypto, katzj
[-- Attachment #1: Type: text/plain, Size: 928 bytes --]
Version: 3.7-pre2-1
On Sat, 2011-07-30 at 14:13 +0800, Herbert Xu wrote:
> Ralf Jung <ralfjung-e@gmx.de> wrote:
> > Hi,
> >
> > as per request of Jonathan at http://bugs.debian.org/cgi-
> > bin/bugreport.cgi?bug=485070, I am reporting the mentioned bug to this list as
> > well:
> >
> > With current Debian testing (Kernel 2.6.39), I am getting this error on each
> > boot:
> > FATAL: Error inserting padlock_sha (/lib/modules/2.6.39-2-
> > amd64/kernel/drivers/crypto/padlock-sha.ko): No such device
> > I understand it is harmless, but it should still be fixed since it irritates
> > users suggesting something is seriously going wrong.
>
> That message comes from user-space and needs to be fixed there.
Right, it comes from modprobe.
Fixed in module-init-tools version 3.5, commit
cdafffbadc5831ad56fe00ecd420ca9c36e9474f ("don't warn noisely if loading
multiple module aliases").
Ben.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] crypto: padlock-aes - Make module loading even quieter when hardware is missing
2011-07-30 6:13 ` Herbert Xu
2011-07-30 9:15 ` Bug#485070: " Ben Hutchings
@ 2011-07-30 11:50 ` Jonathan Nieder
2011-08-03 6:08 ` Herbert Xu
1 sibling, 1 reply; 5+ messages in thread
From: Jonathan Nieder @ 2011-07-30 11:50 UTC (permalink / raw)
To: Herbert Xu, 485070; +Cc: Ralf Jung, linux-crypto, katzj
When loading aes via the module alias, a padlock module failing to
load due to missing hardware is not particularly notable. With
v2.6.27-rc1~1107^2~14 (crypto: padlock - Make module loading quieter
when hardware isn't available, 2008-07-03), the padlock-aes module
suppresses the relevant messages when the "quiet" flag is in use; but
better to suppress this particular message completely, since the
administrator can already distinguish such errors by the absence of a
message indicating initialization failing or succeeding.
This avoids occasional messages in syslog of the form
padlock_aes: VIA PadLock not detected.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
Herbert Xu wrote:
> Ralf Jung <ralfjung-e@gmx.de> wrote:
>> With current Debian testing (Kernel 2.6.39), I am getting this error on each
>> boot:
>> FATAL: Error inserting padlock_sha (/lib/modules/2.6.39-2-
>> amd64/kernel/drivers/crypto/padlock-sha.ko): No such device
[...]
> That message comes from user-space and needs to be fixed there.
Thanks. Indeed, I was sloppy when reading the original report and
thought he was talking about a different message. Sorry for the
noise.
drivers/crypto/padlock-aes.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/crypto/padlock-aes.c b/drivers/crypto/padlock-aes.c
index db33d300..29b9469f 100644
--- a/drivers/crypto/padlock-aes.c
+++ b/drivers/crypto/padlock-aes.c
@@ -508,10 +508,8 @@ static int __init padlock_init(void)
int ret;
struct cpuinfo_x86 *c = &cpu_data(0);
- if (!cpu_has_xcrypt) {
- printk(KERN_NOTICE PFX "VIA PadLock not detected.\n");
+ if (!cpu_has_xcrypt)
return -ENODEV;
- }
if (!cpu_has_xcrypt_enabled) {
printk(KERN_NOTICE PFX "VIA PadLock detected, but not enabled. Hmm, strange...\n");
--
1.7.6
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] crypto: padlock-aes - Make module loading even quieter when hardware is missing
2011-07-30 11:50 ` [PATCH] crypto: padlock-aes - Make module loading even quieter when hardware is missing Jonathan Nieder
@ 2011-08-03 6:08 ` Herbert Xu
0 siblings, 0 replies; 5+ messages in thread
From: Herbert Xu @ 2011-08-03 6:08 UTC (permalink / raw)
To: Jonathan Nieder; +Cc: 485070, Ralf Jung, linux-crypto, katzj
On Sat, Jul 30, 2011 at 01:50:12PM +0200, Jonathan Nieder wrote:
> When loading aes via the module alias, a padlock module failing to
> load due to missing hardware is not particularly notable. With
> v2.6.27-rc1~1107^2~14 (crypto: padlock - Make module loading quieter
> when hardware isn't available, 2008-07-03), the padlock-aes module
> suppresses the relevant messages when the "quiet" flag is in use; but
> better to suppress this particular message completely, since the
> administrator can already distinguish such errors by the absence of a
> message indicating initialization failing or succeeding.
>
> This avoids occasional messages in syslog of the form
>
> padlock_aes: VIA PadLock not detected.
>
> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Patch applied. Thanks Jonathan!
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-08-03 6:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-28 12:03 cryptsetup: "FATAL" padlock_{aes,sha} error during boot Ralf Jung
2011-07-30 6:13 ` Herbert Xu
2011-07-30 9:15 ` Bug#485070: " Ben Hutchings
2011-07-30 11:50 ` [PATCH] crypto: padlock-aes - Make module loading even quieter when hardware is missing Jonathan Nieder
2011-08-03 6:08 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).