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:	Thu, 10 May 2007 09:31:53 -0700
From:	Pete Zaitcev <zaitcev@...hat.com>
To:	"Joerg Roedel" <joerg.roedel@....com>
Cc:	"Andi Kleen" <andi@...stfloor.org>, ak@...e.de,
	linux-kernel@...r.kernel.org, "Benny Halevy" <bhalevy@...asas.com>,
	akpm@...ux-foundation.org, zaitcev@...hat.com
Subject: Re: Andi, you broke my laptop :-)

On Thu, 10 May 2007 15:35:56 +0200, "Joerg Roedel" <joerg.roedel@....com> wrote:

> I debugged this problem a bit and my compiler[1]interprets the =A
> constraint as %rax instead of %edx:%eax on x86_64 which causes the
> problem. The appended patch provides a workaround for this and fixed the
> hang on my machine.
> 
> [1] gcc version 4.1.3 20070429 (prerelease) (Debian 4.1.2-5)

>  	alternative_io(ASM_NOP3, ".byte 0x0f,0x01,0xf9", X86_FEATURE_RDTSCP,
> -			 	 "=A" (ret), "0" (0ULL) : "ecx", "memory");
> +		       ASM_OUTPUT2("=a" (eax), "=d" (edx)),
> +		       "a" (0U), "d" (0U) : "ecx", "memory");

This works for me. Thanks, Joerg.

gcc version 4.1.2 20070424 (Red Hat 4.1.2-11)

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