Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751785AbdGGJ2L (ORCPT ); Fri, 7 Jul 2017 05:28:11 -0400 Received: from merlin.infradead.org ([205.233.59.134]:46836 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750726AbdGGJ2J (ORCPT ); Fri, 7 Jul 2017 05:28:09 -0400 Date: Fri, 7 Jul 2017 11:27:45 +0200 From: Peter Zijlstra To: Elena Reshetova Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-audit@redhat.com, linux-fsdevel@vger.kernel.org, gregkh@linuxfoundation.org, viro@zeniv.linux.org.uk, tj@kernel.org, mingo@redhat.com, hannes@cmpxchg.org, lizefan@huawei.com, acme@kernel.org, alexander.shishkin@linux.intel.com, eparis@redhat.com, akpm@linux-foundation.org, arnd@arndb.de, luto@kernel.org, keescook@chromium.org, Hans Liljestrand , David Windsor Subject: Re: [PATCH 06/15] kernel: convert perf_event_context.refcount from atomic_t to refcount_t Message-ID: <20170707092745.3bxg3omd5pbly6rd@hirez.programming.kicks-ass.net> References: <1499418269-3686-1-git-send-email-elena.reshetova@intel.com> <1499418269-3686-7-git-send-email-elena.reshetova@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1499418269-3686-7-git-send-email-elena.reshetova@intel.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 589 Lines: 13 On Fri, Jul 07, 2017 at 12:04:20PM +0300, 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 That's an invalid SoB chain.. can't do anything with these patches.