]> git.baikalelectronics.ru Git - kernel.git/commit
kernel: convert css_set.refcount from atomic_t to refcount_t
authorElena Reshetova <elena.reshetova@intel.com>
Wed, 8 Mar 2017 08:00:40 +0000 (10:00 +0200)
committerTejun Heo <tj@kernel.org>
Wed, 8 Mar 2017 22:46:03 +0000 (17:46 -0500)
commit98ae3f74a85c1e86e9c0e3df1a4f70119a929584
tree75ede84d703f3e230322be6f11b87625ba9ab72f
parent9f41a76e72a0051a5652faec6f702b6d4ab90dc7
kernel: convert css_set.refcount 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>
include/linux/cgroup-defs.h
kernel/cgroup/cgroup-internal.h
kernel/cgroup/cgroup-v1.c
kernel/cgroup/cgroup.c