Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 19 Jan 2017 13:52:47 +0100
From: Peter Zijlstra <>
To: "Reshetova, Elena" <>
Cc: Eric Biggers <>,
	"" <>,
	"" <>,
	"" <>,
	"" <>,
	"" <>,
	"Anvin, H Peter" <>,
	"" <>,
	"" <>,
	"" <>
Subject: Re: [RFCv2 PATCH 00/18] refcount_t API + usage

On Thu, Jan 19, 2017 at 10:22:28AM +0000, Reshetova, Elena wrote:
> > You again failed to reply to my last email on the subject. The initial
> > PaX thing was broken as heck, only later did you mention it got fixed. I
> > told you we could change to that for x86 if it could be proven to be
> > equivalent.
> I am confused on what is referred here as a fix.. 

>From where Eric said:

"I do see they used to use a slightly different approach that did a decrement
instead of setting the counter to INT_MAX.  And that was clearly racy because
two concurrent increments could circumvent the overflow protection."

> This had numbers on addl vs. cmpxchg:

does too, sure cmpxchg is a bit slower uncontended, but I'm not sure we
should worry about that much. And refcounts really should not be heavily
contended, if they are there's design level issues that ought to be
looked at.

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.