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: <7e7167fd-cf4d-4d8b-bd83-d9fe8887dbae@gmail.com>
Date: Thu, 9 May 2024 06:59:17 +0900
From: Akira Yokosawa <akiyks@...il.com>
To: Boqun Feng <boqun.feng@...il.com>, Puranjay Mohan <puranjay@...nel.org>,
 Luc Maranget <luc.maranget@...ia.fr>
Cc: Alan Stern <stern@...land.harvard.edu>,
 Andrea Parri <parri.andrea@...il.com>, Will Deacon <will@...nel.org>,
 Peter Zijlstra <peterz@...radead.org>, Nicholas Piggin <npiggin@...il.com>,
 David Howells <dhowells@...hat.com>, Jade Alglave <j.alglave@....ac.uk>,
 "Paul E. McKenney" <paulmck@...nel.org>, Daniel Lustig <dlustig@...dia.com>,
 Joel Fernandes <joel@...lfernandes.org>, linux-kernel@...r.kernel.org,
 linux-arch@...r.kernel.org, puranjay12@...il.com,
 Akira Yokosawa <akiyks@...il.com>
Subject: Re: [PATCH] tools/memory-model: Add atomic_and()/or()/xor() and
 add_negative

On Wed, 8 May 2024 12:49:57 -0700, Boqun Feng wrote:
> On Wed, May 08, 2024 at 02:34:00PM +0000, Puranjay Mohan wrote:
>> Pull-849[1] added the support of '&', '|', and '^' to the herd7 tool's
>> atomics operations.
>>
>> Use these in linux-kernel.def to implement atomic_and()/or()/xor() with
>> all their ordering variants.
>>
>> atomic_add_negative() is already available so add its acquire, release,
>> and relaxed ordering variants.
>>
>> [1] https://github.com/herd/herdtools7/pull/849
> 
> A newer version of herd is required for this feature, right?

Yes, this requires building herd7 from latest source.

herdtools7 7.57 (released recently) happened before pull 849.

Luc, what is your plan on a next release (7.57.1?) ?

>                                                               So please
> also do a change in tools/memory-model/README "REQUIREMENTS" session
> when the new version released.

Puranjay, it would be great if you add some litmus tests which use
additional atomic primitives under tools/memory-model/litmus-tests/
as well.

        Thanks, Akira

> Boqun
> 
>>
>> Signed-off-by: Puranjay Mohan <puranjay@...nel.org>
>> ---
>>  tools/memory-model/linux-kernel.def | 21 +++++++++++++++++++++
>>  1 file changed, 21 insertions(+)


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ