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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA091ECAAD3 for ; Thu, 1 Sep 2022 09:58:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229798AbiIAJ6F (ORCPT ); Thu, 1 Sep 2022 05:58:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231717AbiIAJ6C (ORCPT ); Thu, 1 Sep 2022 05:58:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 412BC13778F for ; Thu, 1 Sep 2022 02:58:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DF4B2B8255E for ; Thu, 1 Sep 2022 09:57:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A717C433D6; Thu, 1 Sep 2022 09:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662026278; bh=kV341kEud1SdNlHVGRW8mPXcJpeuxbGPwHt+lNvqVnw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Vp49PUrcgMhygoTTfL2HZ2aSPx9jp5xO98QU1pcylidRcjETcNNtgEvcgL7F4ZoG0 CIUGtUPs55H1qXQJFUAsdVjJpffnCH/b81ZZA9oz3tOVl7tH2F96CjSShiJKyr/XJS 8HMzsbGXChaLveqTJutzTTPB9f4XKZO/Kd7s18Jo= Date: Thu, 1 Sep 2022 11:57:55 +0200 From: Greg KH To: Michael Bestas Cc: stable@vger.kernel.org, Hsin-Yi Wang , Stephen Boyd , Mike Rapoport , Will Deacon Subject: Re: [PATCH] arm64: map FDT as RW for early_init_dt_scan() Message-ID: References: <20220831203200.1684696-1-mkbestas@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220831203200.1684696-1-mkbestas@gmail.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Aug 31, 2022 at 11:32:00PM +0300, Michael Bestas wrote: > From: Hsin-Yi Wang > > commit e112b032a72c78f15d0c803c5dc6be444c2e6c66 upstream. > > Currently in arm64, FDT is mapped to RO before it's passed to > early_init_dt_scan(). However, there might be some codes > (eg. commit "fdt: add support for rng-seed") that need to modify FDT > during init. Map FDT to RO after early fixups are done. > > Cc: stable@vger.kernel.org # 4.14 > Signed-off-by: Hsin-Yi Wang > Reviewed-by: Stephen Boyd > Reviewed-by: Mike Rapoport > Signed-off-by: Will Deacon > [mkbestas: fixed trivial conflicts for 4.14 backport] > Signed-off-by: Michael Bestas > --- > arch/arm64/include/asm/mmu.h | 2 +- > arch/arm64/kernel/kaslr.c | 5 +---- > arch/arm64/kernel/setup.c | 9 ++++++++- > arch/arm64/mm/mmu.c | 15 +-------------- > 4 files changed, 11 insertions(+), 20 deletions(-) > Both now queued up, thanks. greg k-h