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]
Date:	Mon, 23 May 2016 13:40:06 -0700
From:	Jason Low <jason.low2@....com>
To:	Davidlohr Bueso <dave@...olabs.net>
Cc:	jason.low2@...com, Waiman Long <waiman.long@....com>,
	Peter Zijlstra <peterz@...radead.org>,
	Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org,
	"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
	Terry Rudd <terry.rudd@....com>,
	Scott J Norton <scott.norton@....com>
Subject: Re: [PATCH] locking/mutex: Set and clear owner using WRITE_ONCE()

On Fri, 2016-05-20 at 18:00 -0700, Davidlohr Bueso wrote:
> On Fri, 20 May 2016, Waiman Long wrote:
> 
> >I think mutex-debug.h also needs similar changes for completeness.
> 
> Maybe, but given that with debug the wait_lock is unavoidable, doesn't
> this send the wrong message?

The mutex_set_owner() and mutex_clear_owner() can still get called in
the fastpath without the wait_lock for the debug case too correct? If
that's the case, then the WRITE_ONCE would still make sense to have in
the debug case.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ