diff options
author | Elena Reshetova | 2017-02-20 11:19:00 +0100 |
---|---|---|
committer | Tejun Heo | 2017-03-06 20:55:22 +0100 |
commit | 387ad9674b0013c8756ad20d854ff005b0c313ad (patch) | |
tree | 4e019a943d277232afdd5421276cc48829008214 /kernel/cgroup/cgroup-v1.c | |
parent | Linux 4.11-rc1 (diff) | |
download | kernel-qcow2-linux-387ad9674b0013c8756ad20d854ff005b0c313ad.tar.gz kernel-qcow2-linux-387ad9674b0013c8756ad20d854ff005b0c313ad.tar.xz kernel-qcow2-linux-387ad9674b0013c8756ad20d854ff005b0c313ad.zip |
kernel: convert cgroup_namespace.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: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup/cgroup-v1.c')
0 files changed, 0 insertions, 0 deletions