lkml.org 
[lkml]   [2017]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/4] arch subsystem refcounter conversions
Date
Now when new refcount_t type and API are finally merged
(see include/linux/refcount.h), the following
patches convert various refcounters in the arch susystem from atomic_t
to refcount_t. By doing this we prevent intentional or accidental
underflows or overflows that can led to use-after-free vulnerabilities.

The below patches are fully independent and can be cherry-picked separately.
Since we convert all kernel subsystems in the same fashion, resulting
in about 300 patches, we have to group them for sending at least in some
fashion to be manageable. Please excuse the long cc list.

Elena Reshetova (4):
s390: convert debug_info.ref_count from atomic_t to refcount_t
x86: convert threshold_bank.cpus from atomic_t to refcount_t
sparc: convert mdesc_handle.refcnt from atomic_t to refcount_t
kvm: convert kvm.users_count from atomic_t to refcount_t

arch/s390/include/asm/debug.h | 3 ++-
arch/s390/kernel/debug.c | 8 ++++----
arch/sparc/kernel/mdesc.c | 17 +++++++++--------
arch/x86/include/asm/amd_nb.h | 3 ++-
arch/x86/kernel/cpu/mcheck/mce_amd.c | 6 +++---
include/linux/kvm_host.h | 3 ++-
virt/kvm/kvm_main.c | 8 ++++----
7 files changed, 26 insertions(+), 22 deletions(-)

--
2.7.4

\
 
 \ /
  Last update: 2017-02-20 12:07    [W:0.138 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site