From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754361AbdCHWyS (ORCPT ); Wed, 8 Mar 2017 17:54:18 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:33535 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754065AbdCHWyQ (ORCPT ); Wed, 8 Mar 2017 17:54:16 -0500 Date: Wed, 8 Mar 2017 17:47:19 -0500 From: Tejun Heo To: Elena Reshetova Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Hans Liljestrand , Kees Cook , David Windsor Subject: Re: [PATCH] kernel: convert css_set.refcount from atomic_t to refcount_t Message-ID: <20170308224719.GA21117@htj.duckdns.org> References: <1488960040-24741-1-git-send-email-elena.reshetova@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1488960040-24741-1-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 Wed, Mar 08, 2017 at 10:00:40AM +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