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>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 01 Jan 2008 18:22:24 -0800
From:	"H. Peter Anvin" <hpa@...or.com>
To:	Adrian Bunk <bunk@...nel.org>
CC:	Christoph Hellwig <hch@...radead.org>,
	Mike Frysinger <vapier@...too.org>, tglx@...utronix.de,
	mingo@...hat.com, Andi Kleen <andi@...stfloor.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: asm-x86/byteorder.h: clean up for userspace

Adrian Bunk wrote:
> 
> Userspace either has to #define CONFIG_X86_BSWAP or it'll get the slow 
> versions of these functions...
> 
> Leaking CONFIG_ variables to userspace is not really funny - I remember 
> e.g. what tricks MySQL does (did?) for (ab)using asm-i386/atomic.h in 
> userspace.
> 

True.  CONFIG_X86_BSWAP isn't appropriate for userspace anyway, 
userspace needs to use the appropriate gcc intrinsics for 486+.

	-hpa
--
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