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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 30 May 2010 19:03:46 +0200
From:	Borislav Petkov <>
To:	"H. Peter Anvin" <>
Cc:	Geert Uytterhoeven <>,
	Borislav Petkov <>,
	Toralf Förster <>,,
Subject: [PATCH] x86, hweight: Fix UML boot crash

Obviously UML cannot stomach callee reg-saving trickery
introduced with d61931d89be506372d01a90d1755f6d0a9fafe2d (x86:
Add optimized popcnt variants) and oopses during boot:

Go ahead and fall back to the software hweight* routines on UML.

LKML-Reference: <>
Tested-by: Toralf Förster <>
Tested-by: Geert Uytterhoeven <>
Signed-off-by: Borislav Petkov <>
 arch/x86/include/asm/bitops.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/x86/include/asm/bitops.h b/arch/x86/include/asm/bitops.h
index 545776e..c9dad12 100644
--- a/arch/x86/include/asm/bitops.h
+++ b/arch/x86/include/asm/bitops.h
@@ -444,7 +444,11 @@ static inline int fls(int x)
+#ifdef CONFIG_UML
+#include <asm-generic/bitops/arch_hweight.h>
 #include <asm/arch_hweight.h>
 #include <asm-generic/bitops/const_hweight.h>

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists