Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp500126imm; Fri, 3 Aug 2018 07:00:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpec3T177B6JdqyJ4MEour21wOo5tTu/ZNh8VIi4CufUkznWIZsPdO2A4KUu9PESQL2fPt3w X-Received: by 2002:a17:902:622:: with SMTP id 31-v6mr3680739plg.153.1533304803806; Fri, 03 Aug 2018 07:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533304803; cv=none; d=google.com; s=arc-20160816; b=XoClw14nErNEgj7Q59C7XEBPhAbILJtObJJ+x1Ej6ye5D7K+CFpq+mdvZFLGkhFNNw +3/HT5gQF+Ja040NiGFxZId88xAa7fnFrNA4igb0Rg/phGgN4+JAZwSktITI5a8ADcaD 5ERFY5wIY35aTyw+Lq9YpQudP1Wjzz4LOkqEITdUskaguee00HEnG94v2v1VMpbP3cb6 WOmRMQWxsdmJ1Tvv1OvJsTeAfqGHUZbTxmyYfmzwRiwmvhU16/hIb9j9EDGIvKh4HSIb DNpNdMYiZ+Y5Z1uYwpuIeKXdqjGne4GElmvclY6WESOnOrJD2+ac32aauLxqAKSSBAM3 CdXw== 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=aiyJr9pJsioyCy9ZY9xtuyN+CYrOKP2EMyXPRF6GnNc=; b=OXZ3v4XcxoQy/7/hR7FLk9pWZQv8jkPDBAsUcwI3Qf1rGYc4D+/WroXw/4Quv1NO10 0dZwfwfRYUJ4YKS98wQIS6OlAj7s1Juh38OnsVS0fMtDrTig2Pn5nwa6qjtOsLcQ4Jq+ t9ltO0nu6isqk8oTByyCCvRdcHvig1Lw0hNbl2t/0WZLsL0FJtfvNS1n83wBNVJeGgo5 5oxA5mhaiCgEHwvnWuYISeI+PCQsqfNPcnbrxZxJriIPwDVrXm9Bjifch0SvAwHUPSQm fizgB3z7Mz6LMyKm3cnuq+fj4jVxoQ4MyK5LK4E9cxP+SyncDDi7Pf8vk4Ldj4pR0FR3 QYyQ== 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 a190-v6si5252266pgc.241.2018.08.03.06.59.49; Fri, 03 Aug 2018 07:00:03 -0700 (PDT) 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 S1732287AbeHCPym (ORCPT + 99 others); Fri, 3 Aug 2018 11:54:42 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:36850 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728833AbeHCPym (ORCPT ); Fri, 3 Aug 2018 11:54:42 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1flaap-0005Be-Dm; Fri, 03 Aug 2018 21:58:11 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1flaaj-00023Z-0F; Fri, 03 Aug 2018 21:58:05 +0800 Date: Fri, 3 Aug 2018 21:58:04 +0800 From: Herbert Xu To: Jia-Ju Bai Cc: giovanni.cabiddu@intel.com, davem@davemloft.net, qat-linux@intel.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: qat: adf_aer: Replace GFP_ATOMIC with GFP_KERNEL in adf_dev_aer_schedule_reset() Message-ID: <20180803135804.4snrn45ayf7bvyj7@gondor.apana.org.au> References: <20180723082744.25409-1-baijiaju1990@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180723082744.25409-1-baijiaju1990@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 23, 2018 at 04:27:44PM +0800, Jia-Ju Bai wrote: > adf_dev_aer_schedule_reset() is never called in atomic context, as it > calls wait_for_completion_timeout(). > > adf_dev_aer_schedule_reset() calls kzalloc() with GFP_ATOMIC, > which is not necessary. > GFP_ATOMIC can be replaced with GFP_KERNEL. > > This is found by a static analysis tool named DCNS written by myself. > I also manually check the kernel code before reporting it. > > 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