public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: fix fallout from ZERO_PAGE consolidation
@ 2026-04-17 10:32 Mike Rapoport
  2026-04-17 10:56 ` John Paul Adrian Glaubitz
  2026-04-19 18:54 ` Artur Rojek
  0 siblings, 2 replies; 6+ messages in thread
From: Mike Rapoport @ 2026-04-17 10:32 UTC (permalink / raw)
  To: Andrew Morton
  Cc: John Paul Adrian Glaubitz, Mike Rapoport, Rich Felker,
	Thomas Wei�schuh, Yoshinori Sato, linux-kernel, linux-sh

From: "Mike Rapoport (Microsoft)" <rppt@kernel.org>

Consolidation of empty_zero_page declarations broke boot on sh.

sh stores its initial boot parameters in a page reserved in
arch/sh/kernel/head_32.S. Before commit 6215d9f4470f ("arch, mm:
consolidate empty_zero_page") this page was referenced in C code as an
array and after that commit it is referenced as a pointer.

This causes wrong code generation and boot hang.

Declare boot_params_page as an array to fix the issue.

Reported-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Tested-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Fixes: 6215d9f4470f ("arch, mm: consolidate empty_zero_page")
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
---
 arch/sh/include/asm/setup.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/sh/include/asm/setup.h b/arch/sh/include/asm/setup.h
index 63c9efc06348..8488f76b48b4 100644
--- a/arch/sh/include/asm/setup.h
+++ b/arch/sh/include/asm/setup.h
@@ -7,7 +7,7 @@
 /*
  * This is set up by the setup-routine at boot-time
  */
-extern unsigned char *boot_params_page;
+extern unsigned char boot_params_page[];
 #define PARAM boot_params_page
 
 #define MOUNT_ROOT_RDONLY (*(unsigned long *) (PARAM+0x000))

base-commit: 43cfbdda5af60ffc6272a7b8c5c37d1d0a181ca9
-- 
2.53.0


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

end of thread, other threads:[~2026-04-19 18:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-17 10:32 [PATCH] sh: fix fallout from ZERO_PAGE consolidation Mike Rapoport
2026-04-17 10:56 ` John Paul Adrian Glaubitz
2026-04-18  8:33   ` John Paul Adrian Glaubitz
2026-04-18 10:34     ` Mike Rapoport
2026-04-18 11:26       ` John Paul Adrian Glaubitz
2026-04-19 18:54 ` Artur Rojek

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