Re: [PATCHv2] refcount: always allow checked forms

2018-07-12 Thread Ingo Molnar
* Kees Cook wrote: > On Thu, Jul 12, 2018 at 10:01 AM, Will Deacon wrote: > > On Wed, Jul 11, 2018 at 10:36:07AM +0100, Mark Rutland wrote: > >> In many cases, it would be useful to be able to use the full > >> sanity-checked refcount helpers regardless of CONFIG_REFCOUNT_FULL, as > >> this wo

Re: [PATCHv2] refcount: always allow checked forms

2018-07-12 Thread Kees Cook
On Thu, Jul 12, 2018 at 10:01 AM, Will Deacon wrote: > On Wed, Jul 11, 2018 at 10:36:07AM +0100, Mark Rutland wrote: >> In many cases, it would be useful to be able to use the full >> sanity-checked refcount helpers regardless of CONFIG_REFCOUNT_FULL, as >> this would help to avoid duplicate warni

Re: [PATCHv2] refcount: always allow checked forms

2018-07-12 Thread Will Deacon
On Wed, Jul 11, 2018 at 10:36:07AM +0100, Mark Rutland wrote: > In many cases, it would be useful to be able to use the full > sanity-checked refcount helpers regardless of CONFIG_REFCOUNT_FULL, as > this would help to avoid duplicate warnings where callers try to > sanity-check refcount manipulati

[PATCHv2] refcount: always allow checked forms

2018-07-11 Thread Mark Rutland
In many cases, it would be useful to be able to use the full sanity-checked refcount helpers regardless of CONFIG_REFCOUNT_FULL, as this would help to avoid duplicate warnings where callers try to sanity-check refcount manipulation. This patch refactors things such that the full refcount helpers w