Received: by 10.223.185.116 with SMTP id b49csp87982wrg; Thu, 15 Feb 2018 17:11:39 -0800 (PST) X-Google-Smtp-Source: AH8x225G8KUoE1qSd+i18ILqjSWYIQPB0jRSGHup/O5DtNKYWur6an1gUbeVPZq0PBEs1uU9wFT4 X-Received: by 10.98.32.136 with SMTP id m8mr4371516pfj.80.1518743499790; Thu, 15 Feb 2018 17:11:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518743499; cv=none; d=google.com; s=arc-20160816; b=hEKSTAl2BaI/GydsDzbqbmvzLHkFdKB3nUMT44LitvEmObi3sfU/s3nisy9MXESSTj S68nDtYDLYCLkQKz5CQai37L3uZ3QtCtUnmzFjl4CFQS/+/BThEFGc5PspAyaOnpJ2fn 3eVUHzxMl2x+j8v7FzVd0QVUTfHYc2006R/RQvuka1aKym/wbK7b4tpJAfBTE+Xi14Yd O6Ao0vNiCtyct+cjkZgGo9Gjkz8zvYlKxHOEOqrCT3hoP4+YrupqywzP/kBgkLxHCJ3Z 9KbtXuGeIcj2dVzC3gaR4RCfIVuG4GWY4XgvAdJ6W0EPrsi/9YTMwbutUhyoEExVQjyV 5PSQ== 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:arc-authentication-results; bh=6lKtaBDVkQTzBQ41hrjGUqaywcW6eanWcjpfajy20e4=; b=GkBkX49EWcAJvZjgWSdZQxlLCvV7Fe6CAmlCGIrU68EIO1ach26W6oRBur8gWsvJAW 0xHLncNL5XBevrS1oO5uFKb2BW8dKER+RkdjfR9NUqyqUmu9sifQq+5CqCKmhIGppBzT SGV+mOQ86AIfVmwcH9YVQNrGPbkEDAIIM8eEICrY1ppxBqSb8D84tfRUAZAE1VKPG0Ob BzpWZ3lrc2WIxxPGizD8hsadjLtCJ2XKgCKpje//H1shiBfOHE3wbIIh4EYw7q/hMg+x 3ogIyPX4Nx+/qymajy7LjjcmJq6KoVfyyYSvKuRjTZh9iMOrcSblV2mAk6uLEGFqicq8 sDGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 o32-v6si467201pld.52.2018.02.15.17.11.25; Thu, 15 Feb 2018 17:11:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162368AbeBOPn0 (ORCPT + 99 others); Thu, 15 Feb 2018 10:43:26 -0500 Received: from orcrist.hmeau.com ([104.223.48.154]:39516 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033989AbeBOPnT (ORCPT ); Thu, 15 Feb 2018 10:43:19 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.84_2 #2 (Debian)) id 1emLgp-0008Jq-OK; Thu, 15 Feb 2018 23:43:15 +0800 Received: from herbert by gondobar with local (Exim 4.84_2) (envelope-from ) id 1emLgo-0001zJ-EU; Thu, 15 Feb 2018 23:43:14 +0800 Date: Thu, 15 Feb 2018 23:43:14 +0800 From: Herbert Xu To: Jia-Ju Bai Cc: davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: rsa-pkcs1pad: Replace GFP_ATOMIC with GFP_KERNEL in pkcs1pad_encrypt_sign_complete Message-ID: <20180215154314.GH7352@gondor.apana.org.au> References: <1516874274-11851-1-git-send-email-baijiaju1990@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1516874274-11851-1-git-send-email-baijiaju1990@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 25, 2018 at 05:57:54PM +0800, Jia-Ju Bai wrote: > After checking all possible call chains to kzalloc here, > my tool finds that this kzalloc is never called in atomic context. > Thus GFP_ATOMIC is not necessary, and it can be replaced with GFP_KERNEL. > > This is found by a static analysis tool named DCNS written by myself. > > Signed-off-by: Jia-Ju Bai Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt