Received: by 10.223.185.116 with SMTP id b49csp2228998wrg; Thu, 15 Feb 2018 08:25:40 -0800 (PST) X-Google-Smtp-Source: AH8x224gn5mYFig4wR+HQu+RJl1TeO0aL7nnJPE4sQola3Q7oqVqA4UJEzgFOAVWnYVWk3LFLM8Y X-Received: by 10.99.186.22 with SMTP id k22mr2565356pgf.7.1518711939920; Thu, 15 Feb 2018 08:25:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518711939; cv=none; d=google.com; s=arc-20160816; b=SEmPuLatj/M+PdarOMMyXZgc0XoQYcxUO35U4uEHubcAKIAkZ3gRIPwv9Ook0aXOeG 8Qn5DcuGm3jlC8MAlQWjqmT5Y/O6te4Dj0i4nMafrOcNNOyNNMSkvyoNjrR36y5Tev3Z Fagbz0pieTB+vfC9THbmJ6ROmkWeRNgblYvEdmvAV+iy9c4BlTB8jydGYkaoI/m916oU bZo2wSwDw8KR7W/YeHy8StWsEEJuY/9x/tsJfGT50NLGma9gWy44qHPKlDLCdggZtGnF lKdtPG41FJfBbYjl2+efEujgGFdL0gU89fEtZYedYZav0PsbHO9UfirsAm4xUaGYK5n3 9MoQ== 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=nBgYDRw0t6AS+ldzBAD532eR6njuBIOkD3LjFoPEPHY=; b=kQtPCru8GiIFbyWnK+i8cmfJBNW7PtySAMVaBeCLh4/87XJf3vOAcC3g9Ix2onI3T1 cTwpOeOurEBmKFG1rCdNxHAXHtf6V8TURUMhoBDF2cHM15hMMdWrUqnlrO9icvChlQ61 wTu1M5yTwsJ85NBTZ6BHx/7jKSiMCLghhfG0cMQ95k+0fzrEXu9+9pxDT4Dc9rSYlYvq +4wEuv83ITaxFH0A90MxRb+uVQWNWQ9v4yU/fDnuWO7t8u6OItYKwtXpuRHHE6TuHlAI Nry3/KnfjH5B0yEfZgu4v6JCTyOUd9GJhgoOY25wv5rFspRBe9NEGrWe14XP9ckpX3Nv zuxQ== 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 z2si911261pfe.350.2018.02.15.08.25.25; Thu, 15 Feb 2018 08:25: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 S1425836AbeBOQY3 (ORCPT + 99 others); Thu, 15 Feb 2018 11:24:29 -0500 Received: from orcrist.hmeau.com ([104.223.48.154]:39522 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033987AbeBOPn0 (ORCPT ); Thu, 15 Feb 2018 10:43:26 -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 1emLgw-0008KB-QB; Thu, 15 Feb 2018 23:43:22 +0800 Received: from herbert by gondobar with local (Exim 4.84_2) (envelope-from ) id 1emLgv-0001zf-DQ; Thu, 15 Feb 2018 23:43:21 +0800 Date: Thu, 15 Feb 2018 23:43:21 +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: crypto_user: Replace GFP_ATOMIC with GFP_KERNEL in crypto_report Message-ID: <20180215154321.GI7352@gondor.apana.org.au> References: <1516874762-12046-1-git-send-email-baijiaju1990@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1516874762-12046-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 06:06:02PM +0800, Jia-Ju Bai wrote: > After checking all possible call chains to crypto_report here, > my tool finds that crypto_report is never called in atomic context. > And crypto_report calls crypto_alg_match which calls down_read, > thus it proves again that crypto_report can call functions which may sleep. > 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