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, 9 Dec 2008 12:15:08 +0100
From:	Andi Kleen <andi@...stfloor.org>
To:	Jan Beulich <jbeulich@...ell.com>
Cc:	mingo@...e.hu, Andi Kleen <andi@...stfloor.org>,
	tglx@...utronix.de, hpa@...or.com, linux-kernel@...r.kernel.org
Subject: Re: x86-64: __pa_symbol() vs. __pa()

On Tue, Dec 09, 2008 at 10:05:02AM +0000, Jan Beulich wrote:
> Can any of you recall the reason for the comment accompanying the
> __pa_symbol() definition:
> 
> /* __pa_symbol should be used for C visible symbols.
>    This seems to be the official gcc blessed way to do such arithmetic. */

gcc assumes that such symbol arithmetic doesn't wrap. iirc there was a 
miscompilation on PPC64 because of that and then it was fixed
everywhere. On x86-64 there are normally no wraps, but there might
be in some cases.

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