]> asedeno.scripts.mit.edu Git - linux.git/commit
s390: convert debug_info.ref_count from atomic_t to refcount_t
authorElena Reshetova <elena.reshetova@intel.com>
Thu, 2 Mar 2017 11:23:45 +0000 (12:23 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 11 May 2017 14:35:32 +0000 (16:35 +0200)
commitefc0c21c9ea786d6f019d7df7b4e3932f3578d90
tree8d116630c8560d2b1398235a1d501082aa1b88b0
parentd04a4c76f71dd5335f8e499b59617382d84e2b8d
s390: convert debug_info.ref_count 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>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/debug.h
arch/s390/kernel/debug.c