From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932527AbdCFT7V (ORCPT ); Mon, 6 Mar 2017 14:59:21 -0500 Received: from mail-yw0-f196.google.com ([209.85.161.196]:35135 "EHLO mail-yw0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754047AbdCFT7N (ORCPT ); Mon, 6 Mar 2017 14:59:13 -0500 Date: Mon, 6 Mar 2017 14:55:58 -0500 From: Tejun Heo To: Elena Reshetova Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-audit@redhat.com, linux-fsdevel@vger.kernel.org, peterz@infradead.org, gregkh@linuxfoundation.org, viro@zeniv.linux.org.uk, mingo@redhat.com, hannes@cmpxchg.org, lizefan@huawei.com, acme@kernel.org, alexander.shishkin@linux.intel.com, paul@paul-moore.com, eparis@redhat.com, akpm@linux-foundation.org, arnd@arndb.de, luto@kernel.org, Hans Liljestrand , Kees Cook , David Windsor Subject: Re: [PATCH 11/19] kernel: convert cgroup_namespace.count from atomic_t to refcount_t Message-ID: <20170306195558.GE19696@htj.duckdns.org> References: <1487585948-6401-1-git-send-email-elena.reshetova@intel.com> <1487585948-6401-12-git-send-email-elena.reshetova@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1487585948-6401-12-git-send-email-elena.reshetova@intel.com> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Signed-off-by: Hans Liljestrand > Signed-off-by: Kees Cook > Signed-off-by: David Windsor Applied to cgroup/for-4.12. Thanks. -- tejun