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: <20071004173203.GC5828@redhat.com>
Date:	Thu, 4 Oct 2007 13:32:03 -0400
From:	Dave Jones <davej@...hat.com>
To:	Nick Piggin <npiggin@...e.de>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Andi Kleen <ak@...e.de>
Subject: Re: [rfc][patch 2/3] x86: fix IO write barriers

On Thu, Oct 04, 2007 at 07:22:58AM +0200, Nick Piggin wrote:

 > -#ifdef CONFIG_X86_OOSTORE
 > -/* Actually there are no OOO store capable CPUs for now that do SSE, 
 > -   but make it already an possibility. */
 > -#define wmb() alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
 > -#else
 > -#define wmb()	__asm__ __volatile__ ("": : :"memory")
 > -#endif
 > -
 >  #ifdef CONFIG_SMP
 >  #define smp_mb()	mb()
 >  #define smp_rmb()	rmb()
 > -#define smp_wmb()	wmb()
 > +#ifdef CONFIG_X86_OOSTORE
 > +# define smp_wmb() 	wmb()
 > +#else
 > +# define smp_wmb()	barrier()
 > +#endif

The only vendor that ever implemented OOSTOREs was Centaur, and they
only did in the Winchip generation of the CPUs.  When they dropped it
from the C3, I asked whether they intended to bring it back, and the
answer was "extremely unlikely".

So we can probably just drop that "just in case" clause above, and just
do..

 #define smp_wmb()  barrier()


	Dave

-- 
http://www.codemonkey.org.uk
-
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