Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 1 Apr 2020 16:51:38 -0700
From: Linus Torvalds <>
To: Jann Horn <>
Cc: "Eric W. Biederman" <>, Alan Stern <>, 
	Andrea Parri <>, Will Deacon <>, 
	Peter Zijlstra <>, Boqun Feng <>, 
	Nicholas Piggin <>, David Howells <>, 
	Jade Alglave <>, Luc Maranget <>, 
	"Paul E. McKenney" <>, Akira Yokosawa <>, 
	Daniel Lustig <>, Adam Zabrocki <>, 
	kernel list <>, 
	Kernel Hardening <>, Oleg Nesterov <>, 
	Andy Lutomirski <>, Bernd Edlinger <>, 
	Kees Cook <>, Andrew Morton <>, 
	stable <>
Subject: Re: [PATCH] signal: Extend exec_id to 64bits

On Wed, Apr 1, 2020 at 4:37 PM Jann Horn <> wrote:
> GCC will generate code for this without complaining, but I think it'll
> probably generate a tearing store on 32-bit platforms:

This is very much a "we don't care" case.

It's literally testing a sequence counter for equality. If you get
tearing in the high bits on the write (or the read), you'd still need
to have the low bits turn around 4G times to get a matching value.

So no. We're not doing atomics for the 32-bit case. That's insane.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.