-
- Downloads
security, keys: convert key.usage from atomic_t to refcount_t
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by:Elena Reshetova <elena.reshetova@intel.com> Signed-off-by:
Hans Liljestrand <ishkamiel@gmail.com> Signed-off-by:
Kees Cook <keescook@chromium.org> Signed-off-by:
David Windsor <dwindsor@gmail.com> Acked-by:
David Howells <dhowells@redhat.com> Signed-off-by:
James Morris <james.l.morris@oracle.com>
Showing
- include/linux/key.h 3 additions, 2 deletionsinclude/linux/key.h
- security/keys/gc.c 1 addition, 1 deletionsecurity/keys/gc.c
- security/keys/key.c 3 additions, 3 deletionssecurity/keys/key.c
- security/keys/keyring.c 4 additions, 4 deletionssecurity/keys/keyring.c
- security/keys/proc.c 1 addition, 1 deletionsecurity/keys/proc.c
- security/keys/request_key_auth.c 1 addition, 1 deletionsecurity/keys/request_key_auth.c
Loading
Please register or sign in to comment