public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: remove kaslr-seed node when it had used
@ 2023-11-14 13:55 Enlin Mu
  2023-11-17 11:29 ` Will Deacon
  2023-11-17 15:02 ` kernel test robot
  0 siblings, 2 replies; 3+ messages in thread
From: Enlin Mu @ 2023-11-14 13:55 UTC (permalink / raw)
  To: catalin.marinas, will, enlin.mu, enlinmu, linux-arm-kernel; +Cc: linux-kernel

From: Enlin Mu <enlin.mu@unisoc.com>

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 <enlin.mu@unisoc.com>
---
 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;
 }
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-17 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-14 13:55 [PATCH] arm64: remove kaslr-seed node when it had used Enlin Mu
2023-11-17 11:29 ` Will Deacon
2023-11-17 15:02 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox