crypto: algapi - convert cra_refcnt to refcount_t
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@google.com> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>
Showing
- crypto/algapi.c 4 additions, 4 deletionscrypto/algapi.c
- crypto/api.c 1 addition, 1 deletioncrypto/api.c
- crypto/crypto_user.c 2 additions, 2 deletionscrypto/crypto_user.c
- crypto/internal.h 2 additions, 2 deletionscrypto/internal.h
- crypto/proc.c 1 addition, 1 deletioncrypto/proc.c
- include/linux/crypto.h 1 addition, 1 deletioninclude/linux/crypto.h
Loading
Please register or sign in to comment