lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20080715153345.GE4918@hmsreliant.think-freely.org>
Date:	Tue, 15 Jul 2008 11:33:45 -0400
From:	Neil Horman <nhorman@...driver.com>
To:	linux-kernel@...r.kernel.org
Cc:	akpm@...ux-foundation.org, herbert@...dor.apana.org.au,
	mingo@...e.hu, nhorman@...driver.com
Subject: [crypto] patch to fix bad test definition check in prng

Patch to fix bad check of TEST_PRNG_ON_START in prng module.  This should fix
the oopses that simon and ingo recently reported.

Signed-off-by: Neil Horman <nhorman@...driver.com>


 prng.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/crypto/prng.c b/crypto/prng.c
index b28f89a..7aeb0d0 100644
--- a/crypto/prng.c
+++ b/crypto/prng.c
@@ -396,7 +396,7 @@ EXPORT_SYMBOL_GPL(reset_prng_context);
 static int __init prng_mod_init(void)
 {
 
-#ifdef TEST_PRNG_ON_START
+#if TEST_PRNG_ON_START
 	int i;
 	unsigned char tmpbuf[DEFAULT_BLK_SZ];
 
-- 
/****************************************************
 * Neil Horman <nhorman@...driver.com>
 * Software Engineer, Red Hat
 ****************************************************/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ