Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2022380ybl; Thu, 15 Aug 2019 05:19:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwE3cy83fYlfFE3UAQeIwJEMS/QpswAMtH9pSQd5EUYhOMET1mcVF3Mz7UVPITXwwSgpK9h X-Received: by 2002:a17:902:a407:: with SMTP id p7mr4153939plq.328.1565871582200; Thu, 15 Aug 2019 05:19:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565871582; cv=none; d=google.com; s=arc-20160816; b=itX5cfE9la1dPyf/eZlq/UikIUOj+b+WM8x5fUd18icMbmS+ta9IoTofnkXbQ+Q/Vc npKeYCOplPEvGRT3lhUCueG+/PWzw6i8fbcffLn9F5+jRPCJPo/CM0NblLHZ+/Apje0B Tn3qRGTDzlKdi3dUxfUU/MwkGw451PrP5JFY9lRkASBYRPZ8ZyF8gSd08UOxXjKoZNBt VXrljsnLTDXdmZDGu09EZH41YgbIoWGzbrNJxYY9A8u6HMBZM0lv0Xv+1kA8995vF7wF /9lQ1vPqYbHBmulnfa0Z1JOdrva6zNAt/DOhRmItgDMZLK/zjgbCfgEliDWLh41Po1fN /1Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=KST07cixkXWjHybgS7hTksvVfTjsm3Ya23obwhbD8Bk=; b=kVYK/4CYXRJfnBHv9wf9Vd0+HFFEaMFnR2kh6+L8kc4VCnuXfEKDEb7/Ag2n3BdNFb /85iZNMvg1MTslv26BnXgo1pH7nd/C31w0vhaKH3GelUwNBj0h6gOZRomFZEnSYaehP5 PnrYgwAUDzu2AhdXwuzOnrgF8drQ55OFSCdPO562xvtNhKlSQqulbojvFtuJ7Ed9KvvJ qTG9shhM3SN1ZhXG+saUCuXPuW0cBJ7SdV9rC0iZudVp7xzPkvaLN4JPGp61JRQuJsRo P0TrbxjQG8PQIM1eMd3fCeuFEDUkKuFHoP8WdCEST2Bn7AcNQZnN/82moW1SRmg3F+ux T1Mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 145si1914928pfb.262.2019.08.15.05.19.29; Thu, 15 Aug 2019 05:19:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730596AbfHOMGi (ORCPT + 99 others); Thu, 15 Aug 2019 08:06:38 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:57212 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730559AbfHOMGi (ORCPT ); Thu, 15 Aug 2019 08:06:38 -0400 Received: from gondolin.me.apana.org.au ([192.168.0.6] helo=gondolin.hengli.com.au) by fornost.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1hyEWX-0003KV-To; Thu, 15 Aug 2019 22:06:34 +1000 Received: from herbert by gondolin.hengli.com.au with local (Exim 4.80) (envelope-from ) id 1hyEWX-0007hG-5x; Thu, 15 Aug 2019 22:06:33 +1000 Date: Thu, 15 Aug 2019 22:06:33 +1000 From: Herbert Xu To: Chuhong Yuan Cc: "David S . Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: cryptd - Use refcount_t for refcount Message-ID: <20190815120633.GC29355@gondor.apana.org.au> References: <20190808080022.7688-1-hslester96@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190808080022.7688-1-hslester96@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Aug 08, 2019 at 04:00:22PM +0800, Chuhong Yuan wrote: > Reference counters are preferred to use refcount_t instead of > atomic_t. > This is because the implementation of refcount_t can prevent > overflows and detect possible use-after-free. > So convert atomic_t ref counters to refcount_t. > > Signed-off-by: Chuhong Yuan > --- > crypto/cryptd.c | 44 ++++++++++++++++++++++---------------------- > 1 file changed, 22 insertions(+), 22 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt