From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12762C433E6 for ; Thu, 18 Mar 2021 18:05:29 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7865964EE2 for ; Thu, 18 Mar 2021 18:05:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7865964EE2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YtZcOYXukWXBmjEsbhsFmyajmHqwN0jAsfIOANR4r3E=; b=H8QVm5zAj1pd4pNGovi4FxJSc xg94LKJKmrrXgl8viKtj7eDhQeopbuP6InjvLizCYuB4cWkzPjBSxYfI5RWHqodM3+aQ0SIYJ/JeI LX81SRIeeR6Wf5oIDzSFQg+N/oCu5Wantyi4+HwU1X32FUDB9aHLc+E3QbWHgSkoeDASlcm+QDxQl oIjMiKVSGW/PYEBeIxiVi/2j33tOySAM+HGRv6PlLCFDS+4TaQtZ5LTYOc/hExztOWNC2H0OYUFYq 5cPnL+L1WjW9TfSmQ+6L7m6/FvrErVr2KmFwjCOmPkPrrTNiFZNrMR3JdqqMmF8obWgyR144OpS4U +8KM4r1oA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lMx01-005nWP-UT; Thu, 18 Mar 2021 18:03:58 +0000 Received: from foss.arm.com ([217.140.110.172]) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lMwzy-005nVh-3b for linux-arm-kernel@lists.infradead.org; Thu, 18 Mar 2021 18:03:56 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 67C5731B; Thu, 18 Mar 2021 11:03:46 -0700 (PDT) Received: from [10.37.12.7] (unknown [10.37.12.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 51E393F70D; Thu, 18 Mar 2021 11:03:45 -0700 (PDT) Subject: Re: [PATCH 1/5] arm64: vdso: Use GFP_KERNEL for allocating compat vdso and signal pages To: Will Deacon , linux-arm-kernel@lists.infradead.org Cc: kernel-team@android.com, Catalin Marinas , Mark Rutland , Marc Zyngier , Russell King References: <20210318170738.7756-1-will@kernel.org> <20210318170738.7756-2-will@kernel.org> From: Vincenzo Frascino Message-ID: <2ea4ef90-ef57-0d1f-a020-8c44e991ee67@arm.com> Date: Thu, 18 Mar 2021 18:03:44 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210318170738.7756-2-will@kernel.org> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210318_180354_337409_6A217C4F X-CRM114-Status: GOOD ( 16.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 3/18/21 5:07 PM, Will Deacon wrote: > There's no need to allocate the compat vDSO and signal pages using > GFP_ATOMIC allocations, so use GFP_KERNEL instead. > > Signed-off-by: Will Deacon Nit: We could explain why GFP_KERNEL is sufficient in the commit message. Otherwise: Reviewed-by: Vincenzo Frascino > --- > arch/arm64/kernel/vdso.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c > index cee5d04ea9ad..2d057a4dc787 100644 > --- a/arch/arm64/kernel/vdso.c > +++ b/arch/arm64/kernel/vdso.c > @@ -299,7 +299,7 @@ static int aarch32_alloc_kuser_vdso_page(void) > if (!IS_ENABLED(CONFIG_KUSER_HELPERS)) > return 0; > > - vdso_page = get_zeroed_page(GFP_ATOMIC); > + vdso_page = get_zeroed_page(GFP_KERNEL); > if (!vdso_page) > return -ENOMEM; > > @@ -316,7 +316,7 @@ static int aarch32_alloc_sigpage(void) > int sigret_sz = __aarch32_sigret_code_end - __aarch32_sigret_code_start; > unsigned long sigpage; > > - sigpage = get_zeroed_page(GFP_ATOMIC); > + sigpage = get_zeroed_page(GFP_KERNEL); > if (!sigpage) > return -ENOMEM; > > -- Regards, Vincenzo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel