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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 6E91EC433F5 for ; Wed, 22 Sep 2021 03:39:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 27D1F61178 for ; Wed, 22 Sep 2021 03:39:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 27D1F61178 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=h7KE5n9t63QRj49ZvFf+Zr7a5RYxdpNVtL5/hcrbGCk=; b=vDwtaoSJXJ0nZZ 8NogNvY1H0fZfvkKo25FeT0kUuC8L4mXiwwtRua+4zkIps9UjC6VPoz6Qi4ZsnPATKrE1nBhV2iBR WgS6CHrrQKpx/zbNqtFxp2SCLRABQxVezUMgEH/QM5AzbrJ0Yd2bqtnjuC+++X4tsyxge0TYbrxsR fyMmPYDyGj3gZJVEXfRUk61zOoXrUPiid9MRjDQYTMXHt5IoJ73g+D9AGEN3AZB1g0gn4gIu6xne6 4VKNXN8U/kzpcdN3SKLXrYMgrRo90Z/hbwuQhPd1uFuOLhY7xb8eP6E3T1Xfn1DEbe0s1XIKBgzAc mGJDFdVM6+MvWcWTGFSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSt4T-006r00-3o; Wed, 22 Sep 2021 03:37:21 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSt4P-006qzi-Sg for linux-arm-kernel@lists.infradead.org; Wed, 22 Sep 2021 03:37:19 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id EF1F761050; Wed, 22 Sep 2021 03:37:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632281837; bh=FWQZ+NUNWdl7IeG/bXDIvxY+CYdH/bQ0q+zF941rA0Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rR7tNF5hi6GPdZxdgikhirFw/nDZ6An2CerLco1BEEsPDY4hOaiHYasatcRKyopak jpi3LkEVP53APRUa5Xij0iEtnNZtMI2q7NhqnlnujeIS2GGCVU5DZBOcTS+k1Bci6g ihuUjGtLR2+qsZ1KxYIhHedMbjBJ8CYYD97FVn/t22+azvLU+2391JL3c+Ss9vJO+C WuUFGn+5L+GHGQZvw14xtsO0L6GdimYi9AlQhuM+3ZyyfH+9FBmuC2WFK9u0oMmihl R2+mlJbpW7nQUwSGRkamwTEERWcQjNhzi64nQzRRZ7hzoLMeBKnf2r78FVO4Z5fSOO hMpy9GJ9zVUOA== Date: Wed, 22 Sep 2021 11:37:12 +0800 From: Shawn Guo To: "Russell King (Oracle)" Cc: Tim Harvey , Fabio Estevam , Pengutronix Kernel Team , Linux ARM Mailing List , Lee Jones , Robin Murphy , NXP Linux Team Subject: Re: arm32 insecure W+X mapping Message-ID: <20210922033711.GK10217@dragon> References: <381afc78-5a7f-8286-76ea-2e6c7867972d@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210921_203717_984132_B127B1BA X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. 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 Tue, Sep 21, 2021 at 12:19:36AM +0100, Russell King (Oracle) wrote: > diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c > index 9244437cb1b9..5c16257872a5 100644 > --- a/arch/arm/mach-imx/pm-imx6.c > +++ b/arch/arm/mach-imx/pm-imx6.c > @@ -571,6 +571,8 @@ static int __init imx6q_suspend_init(const struct imx6_pm_socdata *socdata) > &imx6_suspend, > MX6Q_SUSPEND_OCRAM_SIZE - sizeof(*pm_info)); > > + __arm_iomem_set_ro(suspend_ocram_base, MX6Q_SUSPEND_OCRAM_SIZE); > + > goto put_device; > > pl310_cache_map_failed: Acked-by: Shawn Guo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel