Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3173256imm; Tue, 29 May 2018 02:21:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrl6pXLo3fEnvlFFP2VWIwa2dJVec11glzFeZytTijiFVIZS17SPkw2In7pLQV2kvnRxiBQ X-Received: by 2002:a65:508d:: with SMTP id r13-v6mr13443051pgp.134.1527585710443; Tue, 29 May 2018 02:21:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527585710; cv=none; d=google.com; s=arc-20160816; b=UmP2xLgBsyJPHWsGNCvL7xuFR8ENJtiJ33pToC6khjJt4CiOMFagUrUqemzHl2Zw20 aLWqnfdc9gNc1gtGX7mb5dM2RdtzF/xi3OEocvOil2DQUPfWCDBiaZQys8Ch/cTZCo5y E2fr+FPotJ1rkQWiL/MpUY+zXLyNfE5nt3dROlB4BWxuINuJAus/cP1LMqRjM7bzgdbV kSyBXtz6cLbyU02vdWFn3yJ6dCcSV8WZqz/4JalqdPM3AhvBWfs3WdJcvLVDvws/FToU 5sf/6Yb+32QgAZkDGlNy5Ks0PhUeoAYeaCd1mtt2qhgGpGDIkETTe7+64aAQf99TExmP +PPw== 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=NU8HkdKMusRwA0UoJFUWsn+Yr4gbba//QIWaCKCaews=; b=W1ZamP9ah3Pg1L26r6kkM7sUxR26X6MCP+zMNqdyJZWmUmkgqNCNVPkffgT/E8EyUg CQ5kgn5S7hPNDKfnhqd+EcckE9UOuFzwOJLXvMXRIp0TsBtBPpZzlk4wzZceGkr0PmXT 54jKvYfi8wmxhmrPnLXT6qBYHB2dDSwMgUI8fCSThc963RQJd+iRT8eMDeuwALFWkH+u kyLxADTx6+J7KZH+ym5rm7pb2NVUYVYgsx5Ja601cIYqvc9ALQPNgyQOCFwNeyoO1LUm uCNbB/PYd7oCXYfBG290cgcs7gA6hy6/YDUylKbaewj6fTvAtlKtzrXkvdtOlqd5FfRo vT9w== 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 d20-v6si30790195pfn.213.2018.05.29.02.21.36; Tue, 29 May 2018 02:21:50 -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 S932612AbeE2JVJ (ORCPT + 99 others); Tue, 29 May 2018 05:21:09 -0400 Received: from foss.arm.com ([217.140.101.70]:35728 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932404AbeE2JVF (ORCPT ); Tue, 29 May 2018 05:21:05 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DE25C1435; Tue, 29 May 2018 02:21:04 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AFE653F25D; Tue, 29 May 2018 02:21:04 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 463E21AE4DF5; Tue, 29 May 2018 10:21:34 +0100 (BST) Date: Tue, 29 May 2018 10:21:34 +0100 From: Will Deacon To: nixiaoming Cc: catalin.marinas@arm.com, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, james.morse@arm.com, kristina.martsenko@arm.com, steve.capper@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/3] arm64:add missing CONFIG_STRICT_KERNEL_RWX for mark_rodata_ro Message-ID: <20180529092133.GA6533@arm.com> References: <20180528033353.54725-1-nixiaoming@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180528033353.54725-1-nixiaoming@huawei.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 Mon, May 28, 2018 at 11:33:53AM +0800, nixiaoming wrote: > Signed-off-by: nixiaoming Please can you write a commit message explaining what this fixes and also give me a pointer to patches 2 and 3 from this series? Will > --- > arch/arm64/mm/mmu.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c > index 2dbb2c9..849f326 100644 > --- a/arch/arm64/mm/mmu.c > +++ b/arch/arm64/mm/mmu.c > @@ -491,6 +491,7 @@ static void __init map_mem(pgd_t *pgdp) > #endif > } > > +#ifdef CONFIG_STRICT_KERNEL_RWX > void mark_rodata_ro(void) > { > unsigned long section_size; > @@ -505,6 +506,7 @@ void mark_rodata_ro(void) > > debug_checkwx(); > } > +#endif > > static void __init map_kernel_segment(pgd_t *pgdp, void *va_start, void *va_end, > pgprot_t prot, struct vm_struct *vma, > -- > 2.10.1 >