From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754910AbdBVQog (ORCPT ); Wed, 22 Feb 2017 11:44:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56636 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754247AbdBVQoY (ORCPT ); Wed, 22 Feb 2017 11:44:24 -0500 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <1487691808-11289-5-git-send-email-elena.reshetova@intel.com> References: <1487691808-11289-5-git-send-email-elena.reshetova@intel.com> <1487691808-11289-1-git-send-email-elena.reshetova@intel.com> To: Elena Reshetova Cc: dhowells@redhat.com, linux-kernel@vger.kernel.org, linux-afs@lists.infradead.org, peterz@infradead.org, gregkh@linuxfoundation.org, Hans Liljestrand , Kees Cook , David Windsor Subject: Re: [PATCH 4/4] fs, afs: convert afs_volume.usage from atomic_t to refcount_t MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <534.1487781288.1@warthog.procyon.org.uk> Date: Wed, 22 Feb 2017 16:34:48 +0000 Message-ID: <535.1487781288@warthog.procyon.org.uk> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 22 Feb 2017 16:34:51 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 This one is fine. Acked-by: David Howells