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] [thread-next>] [day] [month] [year] [list]
Message-ID: <44BBB1AA.3050703@grupopie.com>
Date:	Mon, 17 Jul 2006 16:50:02 +0100
From:	Paulo Marques <pmarques@...popie.com>
To:	Al Boldi <a1426z@...ab.com>
CC:	Arjan van de Ven <arjan@...radead.org>,
	Frank van Maarseveen <frankvm@...nkvm.com>,
	linux-kernel@...r.kernel.org, Andi Kleen <ak@...e.de>
Subject: Re: [PATCH] x86: Don't randomize stack unless current->personality
 permits it

Al Boldi wrote:
>[...] > void fn() {
> 
> 	long i = 9999999;
> 	double x,y;
> 
> 	elapsed(1);
> 	while (i--) fn2(&x,&y);
> 	printf("%4lu ",elapsed(0));
> }

You are not initializing x and y and with -Os at least my gcc really 
uses floating point load/store operations to handle that code.

Maybe the coprocessor has a hard time normalizing certain garbage on the 
stack, but without/with randomization the data comes from other 
addresses and you're just lucky with the contents.

Does this also happens if you add a "x=0, y=0;" line to that function?

-- 
Paulo Marques - www.grupopie.com

Pointy-Haired Boss: I don't see anything that could stand in our way.
            Dilbert: Sanity? Reality? The laws of physics?
-
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