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: <Pine.LNX.4.44L0.1802031708380.29515-100000@netrider.rowland.org>
Date:   Sat, 3 Feb 2018 17:10:06 -0500 (EST)
From:   Alan Stern <stern@...land.harvard.edu>
To:     "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
cc:     Ingo Molnar <mingo@...nel.org>, <linux-kernel@...r.kernel.org>,
        <linux-arch@...r.kernel.org>, <parri.andrea@...il.com>,
        <j.alglave@....ac.uk>, <luc.maranget@...ia.fr>,
        <boqun.feng@...il.com>, <will.deacon@....com>,
        <peterz@...radead.org>, <npiggin@...il.com>, <dhowells@...hat.com>,
        <elena.reshetova@...el.com>, <mhocko@...e.com>, <akiyks@...il.com>,
        Thomas Gleixner <tglx@...utronix.de>,
        Peter Zijlstra <a.p.zijlstra@...llo.nl>,
        Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [GIT PULL tools] Linux kernel memory model

On Sat, 3 Feb 2018, Paul E. McKenney wrote:

> Please see below for an initial patch to this effect.  This activity
> proved to be more productive than expected for these tests, which certainly
> supports our assertion that locking needs more testing...
> 
> MP+polocks.litmus
> MP+porevlocks.litmus
> 
> 	These are allowed by the current model, which surprised me a bit,
> 	given that even powerpc would forbid them.  Is the rationale
> 	that a lock-savvy compiler could pull accesses into the lock's
> 	critical section and then reorder those accesses?  Or does this
> 	constitute a bug in our model of locking?
> 
> 	(And these were allowed when I wrote recipes.txt, embarrassingly
> 	enough...)
> 
> Z6.0+pooncelock+poonceLock+pombonce.litmus
> 
> 	This was forbidden when I wrote recipes.txt, but now is allowed.
> 	The header comment for smp_mb__after_spinlock() makes it pretty
> 	clear that it must be forbidden.  So this one is a bug in our
> 	model of locking.

I just tried testing these under the most recent version of herd, and 
all three were forbidden.

Alan

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ