From nobody Fri Dec 19 21:49:25 2025 Received: from fout-a5-smtp.messagingengine.com (fout-a5-smtp.messagingengine.com [103.168.172.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 032AA34D386; Sun, 9 Nov 2025 00:37:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.148 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762648664; cv=none; b=Ggqq3Hte93zTpwByX6SGQdjBwyECMgy6P+3yp0A8E+8yzdtoZOjRrmcz6To0ReI9EzA/Y4A7HZd3mzByPG67KYZDuUdNHIf/TpDcxgKTtaFyxUEKT+jTWJnzBJeqDnlVhumGg3IUW+UGW0NjgkS7peRikulE+aSpWYaKnzajbuA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762648664; c=relaxed/simple; bh=rgqYUGWc+MktWIxbIPuow4sJbqFJUDgm5UKyNbsaZGg=; h=To:Cc:Message-ID:From:Subject:Date; b=aDy0OjEErII3ow39LVI6tHpbrdy85L1oFmFEsuyFPK9rr2p19aEQkKodOUfxj9aPYoNZhbNlVX23GBFbH7/grcMDzWlQc5lyoMiWlWpljeGTDivZ54HUEgwMG9OjDkNOXyLZsKPTgFllPOlpotJPVyNvUsVmk2+9lEWs1uCh1WI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=none smtp.mailfrom=linux-m68k.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=YmA5QFNW; arc=none smtp.client-ip=103.168.172.148 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="YmA5QFNW" Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfout.phl.internal (Postfix) with ESMTP id E03B6EC0231; Sat, 8 Nov 2025 19:37:39 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Sat, 08 Nov 2025 19:37:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:reply-to:subject :subject:to:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1762648659; x=1762735059; bh=E4aZOzCULi3HBrGklZvBg0eT1cMN m/xQ1tyAYWhxK7U=; b=YmA5QFNW4Q2JUyQorIPO5qjvy0iffm1wFVOoblAsbWs0 gfExFKIbtZTiZJoaJK1R+N0n1geUy+LOOt+2JYJ1rUGIFxF1lMUHKZPtLthrV4YK GQphd+mTXcsB3BaL7ilThm65stJ4LsOcNm0qwfZFfnBBxKT2TD+/t74p7yIg9vF6 szfV08gaN9inrmIxVPU4+k8kzbcepRguAu1LxJISAeA9y6o8/cydcK+/yCTOux4J MOWmXn5K1lZ9rYLhwZ1oIt2XTxDwVhqmnm+HlpEZCIrb5gfnRk+VXKrSFFaZwtmY xVEO+RMmA0dFKVFPJJRFEgxnpY6LbWYSf6SR8+5Tdg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduleegtddtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepvfevkffhufffsedttdertddttddtnecuhfhrohhmpefhihhnnhcuvfhhrghinhcu oehfthhhrghinheslhhinhhugidqmheikehkrdhorhhgqeenucggtffrrghtthgvrhhnpe eukedugeettdegfffhfeejveevkedtgeeuudeggffgheegleejheeiffelgfeuueenucff ohhmrghinhepuggvsghirghnrdhorhhgpdhkvghrnhgvlhdrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehfthhhrghinheslhhinhhu gidqmheikehkrdhorhhgpdhnsggprhgtphhtthhopeduuddpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepmhgrugguhieslhhinhhugidrihgsmhdrtghomhdprhgtphhtthho pehmphgvsegvlhhlvghrmhgrnhdrihgurdgruhdprhgtphhtthhopehnphhighhgihhnse hgmhgrihhlrdgtohhmpdhrtghpthhtoheptghhrhhishhtohhphhgvrdhlvghrohihsegt shhgrhhouhhprdgvuhdprhgtphhtthhopegtvggurghrmhgrgiifvghllhesmhgrtgdrtg homhdprhgtphhtthhopehushgvrhhmheejseihrghhohhordgtohhmpdhrtghpthhtohep lhhinhhugiesthhrvggslhhighdrohhrghdprhgtphhtthhopegsvghnhheskhgvrhhnvg hlrdgtrhgrshhhihhnghdrohhrghdprhgtphhtthhopehsthgrsghlvgesvhhgvghrrdhk vghrnhgvlhdrohhrgh X-ME-Proxy: Feedback-ID: i58a146ae:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 8 Nov 2025 19:37:34 -0500 (EST) To: Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy Cc: Cedar Maxwell , Stan Johnson , "Dr. David Alan Gilbert" , Benjamin Herrenschmidt , stable@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Message-ID: From: Finn Thain Subject: [PATCH] powerpc: Use relocated font data pointer for btext_drawchar() Date: Sun, 09 Nov 2025 11:35:46 +1100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Christophe Leroy Since Linux v6.7, booting using BootX on an Old World PowerMac produces an early crash. Stan Johnson writes, "the symptoms are that the screen goes blank and the backlight stays on, and the system freezes (Linux doesn't boot)." Further testing revealed that the failure can be avoided by disabling CONFIG_BOOTX_TEXT. Bisection revealed that the regression was caused by a patch which replaced the static btext font data with const data in a different compilation unit. To fix this, access the font data at its relocated address. Cc: Cedar Maxwell Cc: Stan Johnson Cc: "Dr. David Alan Gilbert" Cc: Benjamin Herrenschmidt Cc: stable@vger.kernel.org Link: https://lists.debian.org/debian-powerpc/2025/10/msg00111.html Link: https://lore.kernel.org/linuxppc-dev/d81ddca8-c5ee-d583-d579-02b19ed9= 5301@yahoo.com/ Reported-by: Cedar Maxwell Closes: https://lists.debian.org/debian-powerpc/2025/09/msg00031.html Bisected-by: Stan Johnson Tested-by: Stan Johnson Fixes: 0ebc7feae79a ("powerpc: Use shared font data") Signed-off-by: Finn Thain Suggested-by: Christophe Leroy --- Christophe, as you're the author of this patch, this submission will probably need your sign-off. --- arch/powerpc/kernel/btext.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/btext.c b/arch/powerpc/kernel/btext.c index 7f63f1cdc6c3..ca00c4824e31 100644 --- a/arch/powerpc/kernel/btext.c +++ b/arch/powerpc/kernel/btext.c @@ -20,6 +20,7 @@ #include #include #include +#include =20 #define NO_SCROLL =20 @@ -463,7 +464,7 @@ static noinline void draw_byte(unsigned char c, long lo= cX, long locY) { unsigned char *base =3D calc_base(locX << 3, locY << 4); unsigned int font_index =3D c * 16; - const unsigned char *font =3D font_sun_8x16.data + font_index; + const unsigned char *font =3D PTRRELOC(font_sun_8x16.data) + font_index; int rb =3D dispDeviceRowBytes; =20 rmci_maybe_on(); --=20 2.49.1