Date: Wed, 18 Jan 2017 13:52:47 -0800 From: Eric Biggers <ebiggers3@...il.com> To: kernel-hardening@...ts.openwall.com Cc: keescook@...omium.org, arnd@...db.de, tglx@...utronix.de, mingo@...hat.com, h.peter.anvin@...el.com, peterz@...radead.org, will.deacon@....com, dwindsor@...il.com, gregkh@...uxfoundation.org, Elena Reshetova <elena.reshetova@...el.com> Subject: Re: [RFCv2 PATCH 00/18] refcount_t API + usage On Wed, Jan 18, 2017 at 11:11:29AM +0200, Elena Reshetova wrote: > Changes since v1: > - kref INIT fixes are moved to a proper separate commit > - Peter's commits are now properly integrated into series > - various small fixes are incorporated based on testing > results and feedback > > This patch series is build on top of Peter's Zijlstra patches > that provide refcount_t type and API definition. Hi Elena, There seems to be a lot of focus on converting things to use refcount_t but much less focus on providing a refcount_t implementation that actually meets the performance and security goals of the feature. Notably, the proposed patchset provides no information about why the proposed implementation was chosen over the PaX implementation (note that I'm talking about the actual implementation of safe reference counts, not the atomic_t/atomic_unchecked_t division) which as I've already mentioned is much more efficient (less bloated and faster) while still meeting the security goal. I'm especially worried that people will be put in a position where they need to take performance concerns into account when deciding whether to use refcount_t or not. And the patch even still includes the "don't allow incrementing a zero refcount" check which AFAICS is bogus from a security perspective. Even if you and Peter disagree with the comments that I and also PaX Team have made, the patch must at least explain the design decisions made. I also find it strange that the actual refcount_t implementation is hidden in patch 7/18 in the series and has subject "kref: ...", when in fact it's actually the most important patch and will affect much more than kref. Thanks, Eric
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.