Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp443433rdb; Fri, 17 Nov 2023 03:29:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IHE3dfKFtmQ9KcFrVFelrXRs7PeqRk62/LuuLy5SI6Rh1sRjwf3sHVHEc6A14Uk1an6/Xm1 X-Received: by 2002:a17:902:76c5:b0:1cc:ee07:1654 with SMTP id j5-20020a17090276c500b001ccee071654mr4555386plt.14.1700220595849; Fri, 17 Nov 2023 03:29:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700220595; cv=none; d=google.com; s=arc-20160816; b=bykiuMh1un74MQR5X86TSlratE5E7LzFjsHdp/ELw8lJ6Q/RpwfCNKwfufN2i3RG5E +Hj0junEDKqG9nOHcTs+guIOowJafvvgLFD5w41znsGk3gbDGR2VeE+UoSxL2NtncoQu JZY7mcF/ZbYDIuapp3AafKAKiro5VFQueZw7YAewWMXGjMT4dA+Dc9dNw6o2Kvbr1ePI MIGpziKJ2gaPAbbvyJfTH/BNyAPF5QhC8QZlt+YHuSIe7Xd8J+DRTnK3ZQWnz9Ma3vsG qvOVCZ1Kf/rMMco3sb7UnSpexmdebVq5cDoaKIDX8foFVU8bpN48tRORNDTsHQGHAFk8 GOcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3KvfyNdSpwObqZCmoF/bfKQtPrIpLKi0yJwL+NAkN7k=; fh=KWtwfg8wwb6iQtanksnG0z6m60XR+0l+8EvfWApZ8QI=; b=x7MXVw+ipZOYr3wzeSudZk17b+AvtzOhD0gJoHQQABL60s5qvHyEJlESbA+Q50LOU1 lD6xgJoMdTrmHxiG9i7IiIWs0G0toQBPw5NNB+DfGvpEEpHNpq/NC+rhpgkfvOrL8rVK e4NwtjYyaPYeFNeOiPFVMTZO1CCXvKtqBIsw+XH9DhE698IjI9VhkuSI/UkgUzDsGGOc 4BZqQatqHQDA6e+VkfOcVQNqVHQOUt1coFfqd+eeW1UWF/VvS7iAlFTtPqK9EWH0ebBA Ni6yAYi5IDVhrO/6HeYYAZybw8LXlg576FEUa8BUAu0rbyguvkiqoask/FxkH/WiOy1O MINA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fuQhizce; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id z1-20020a170903018100b001ca1bd1e09bsi1745284plg.376.2023.11.17.03.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 03:29:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fuQhizce; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0050982E480E; Fri, 17 Nov 2023 03:29:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345768AbjKQL3r (ORCPT + 99 others); Fri, 17 Nov 2023 06:29:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230051AbjKQL3q (ORCPT ); Fri, 17 Nov 2023 06:29:46 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6FD8C2 for ; Fri, 17 Nov 2023 03:29:42 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2C83C433C8; Fri, 17 Nov 2023 11:29:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700220582; bh=89KndrKS5WwsB8Pvxs+BPPiLG9GvCOcLklC/ispQ7n8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fuQhizcehIzwmjzCARahKhxQIzi/xWaj7fVh0xV5qF8d4h3otKYdQMAhqfIDtDAYy Iej4CBvmbWgbx+5OezzGmY0FiNXVzjeLwbr42Lqdpji/R8BRKb4s9aSf4CPismpUkT zKyn6++uiuvPj+OT2FHykbdGlbB93GrOdfXUQ6mEauJ8GuvuBnn8oXqHODSeJ9Bn2o U3pp/9ww+UgKvg6yd8k4yfZOxzGvEBa+cyohNUTN6/prxkfJYHPMFhVFVS0JWB8R2e bqa59mXhBhsG0rZIliZgf/ju443aag/v19TbknQDCT4wf5qkSEnitirQQ8Kd3uG3OL N2G528SydufnQ== Date: Fri, 17 Nov 2023 11:29:37 +0000 From: Will Deacon To: Enlin Mu Cc: catalin.marinas@arm.com, enlin.mu@unisoc.com, enlinmu@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: remove kaslr-seed node when it had used Message-ID: <20231117112936.GA28997@willie-the-truck> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 17 Nov 2023 03:29:53 -0800 (PST) On Tue, Nov 14, 2023 at 09:55:51PM +0800, Enlin Mu wrote: > From: Enlin Mu > > If this node value is zero,it means that kaslr is enabled. > Removing it for the system safe,nobody knows if this feature is > enable or not. > > Signed-off-by: Enlin Mu > --- > arch/arm64/kernel/pi/kaslr_early.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/kernel/pi/kaslr_early.c b/arch/arm64/kernel/pi/kaslr_early.c > index 17bff6e399e4..bc35d4ed84b7 100644 > --- a/arch/arm64/kernel/pi/kaslr_early.c > +++ b/arch/arm64/kernel/pi/kaslr_early.c > @@ -81,7 +81,7 @@ static u64 get_kaslr_seed(void *fdt) > return 0; > > ret = fdt64_to_cpu(*prop); > - *prop = 0; > + fdt_nop_property(fdt, node, "kaslr-seed"); > return ret; > } Why is it a problem to know that KASLR is enabled? Wouldn't the presence of the FDT_NOPs also give a pretty good hint? Will