Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <445CCB78-B113-4B85-B254-B27E588A9EE6@infradead.org>
Date: Tue, 29 Nov 2016 16:47:11 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: "Reshetova, Elena" <elena.reshetova@...el.com>
CC: "kernel-hardening@...ts.openwall.com" <kernel-hardening@...ts.openwall.com>,Greg KH <gregkh@...uxfoundation.org>,Kees Cook <keescook@...omium.org>,"will.deacon@....com" <will.deacon@....com>,Boqun Feng <boqun.feng@...il.com>,Hans Liljestrand <ishkamiel@...il.com>,David Windsor <dwindsor@...il.com>,"aik@...abs.ru" <aik@...abs.ru>,"david@...son.dropbear.id.au" <david@...son.dropbear.id.au>
Subject: RE: Conversion from atomic_t to refcount_t: summary of issues



On 29 November 2016 16:35:15 CET, "Reshetova, Elena" <elena.reshetova@...el.com> wrote:
>So, could we agree on the following additions that are needed to
>refcount_t API:
>
>- refcount_long_t and all related functions
>- refcount_add(), refcount_sub(), refcount_sub_and_test()
>- refcount_dec_return(), refcount_inc_return()
>- refcount_dec_if_one()
>
>With the above set we can hopefully convert almost everything we
>already saw and then we can decide what to do with remaining extreme
>cases. 
>
>Peter, if you would be able to send the new patch providing the above
>API, it would be great!

I'm not convinced on the return variants. I'll have to look at a number of usage sites to determine wth  they're doing. (Or someone else needs to and explain it here)

Also, I'm ill atm, so I'm not particularly productive.

Also, it would be very good to hear other opinions on the add/sub thing, last time they came up tglx in particular hated them.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

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.