From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751116AbdE1MKq (ORCPT ); Sun, 28 May 2017 08:10:46 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35410 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750984AbdE1MKp (ORCPT ); Sun, 28 May 2017 08:10:45 -0400 Subject: Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to refcount_t To: Kees Cook , Andrew Morton Cc: LKML , Elena Reshetova , Peter Zijlstra , Greg KH , "Eric W. Biederman" , Ingo Molnar , Alexey Dobriyan , "Serge E. Hallyn" , arozansk@redhat.com, Davidlohr Bueso , Hans Liljestrand , David Windsor References: <1487590189-18151-1-git-send-email-elena.reshetova@intel.com> <1487590189-18151-2-git-send-email-elena.reshetova@intel.com> From: Manfred Spraul Message-ID: Date: Sun, 28 May 2017 14:10:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/27/2017 09:41 PM, Kees Cook wrote: > On Mon, Feb 20, 2017 at 3:29 AM, 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 > Manfred, is this okay by you? I think this should go via -mm... The patch is ok, the refcounters are not in the critical path. I'll try to test the patches and then I would send an 'Acked-by', but this will take some days. -- Manfred