Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1593678

Re: [PATCH 11/19] kernel: convert cgroup_namespace.count from atomic_t to refcount_t

From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 11/19] kernel: convert cgroup_namespace.count from atomic_t to refcount_t
Date 2017-03-06 21:00 +0100
Message-ID <ti6Xw-4vE-13@gated-at.bofh.it> (permalink)
References <tcTod-3qg-9@gated-at.bofh.it> <tcToe-3qg-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Feb 20, 2017 at 12:19:00PM +0200, Elena Reshetova wrote:
> 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>

Applied to cgroup/for-4.12.

Thanks.

-- 
tejun

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 11/19] kernel: convert cgroup_namespace.count from  atomic_t to refcount_t Tejun Heo <tj@kernel.org> - 2017-03-06 21:00 +0100

csiph-web