Re: [PATCH] crypto: algapi - convert cra_refcnt to refcount_t

From: Herbert Xu
Date: Fri Jan 05 2018 - 06:17:42 EST


On Fri, Dec 29, 2017 at 10:00:46AM -0600, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@xxxxxxxxxx>
>
> Reference counters should use refcount_t rather than atomic_t, since the
> refcount_t implementation can prevent overflows, reducing the
> exploitability of reference leak bugs. crypto_alg.cra_refcount is a
> reference counter with the usual semantics, so switch it over to
> refcount_t.
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt