From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B40D441AB44; Sat, 28 Feb 2026 17:45:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300738; cv=none; b=IMfAScZjr5OTDAv1Idlj8r4UvpvxtptQvSt82lXBE1UIVnaZL5DJYQ2Pb9rOKLSgmazxU3KLKGlx9vvJiafbUemx87SfGqN4NR6h0HzW8RBMODvC/7b5Lg+NnHtYxOw46DY0kJZ93jIPqD7jnVvkBe8Ei8ROjY8FliUQj4KEL/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300738; c=relaxed/simple; bh=8com0PjHSTh+0gD2UpQ0rW8+1kO9JKtyYtGcqgEWsf0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GjrsiTh1PnYqYHp7HsASgXRrmaH8FnL12/lhSMdqx1OpEnh9l/7XLfMLmrxIvwlbrEgZuiESA/f+QjADh+CXyadWMURiHm4k1REcQ0D38Uqh6V+mISd1AnvUiMWUAaTDQlicuFj5yN2YKX/UoWlgPtK2eTVEMZDWHM8jPgpvYXA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h8pCzqTr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h8pCzqTr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02235C116D0; Sat, 28 Feb 2026 17:45:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772300738; bh=8com0PjHSTh+0gD2UpQ0rW8+1kO9JKtyYtGcqgEWsf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h8pCzqTr9D4TwkrBjtBXXZpgWFj9JnAPbPqhqC0CPHwfxuTdnVZ/sphQpfadZFJJ3 qJAs2alXOwzexQjisXpR1uRR4EZXeeH/x9pstLX7dx6+7x8J7ALXgy7Vuta6T4Pqe7 HQXKo86HTRSXfgyVAh5eugvNWh8vZrOmyYrkbmjcFFetTBflChV+IysZy9xTz/BRx4 qKI+18GQiFLTwHKSx8Rpn8sy+JmRXM18C4WnW4NJXxRF4JFHiogBOcvU7dl2BB7Tcz CAg3YUskyCxXdVCE9fJEqwdHJviE6WFbxqQd6F95GjdZvnpq0R02HX2DtOayuyvASH TRyRTd48QJM3g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Tiezhu Yang , Huacai Chen , Sasha Levin Subject: [PATCH 6.19 773/844] LoongArch: Use %px to print unmodified unwinding address Date: Sat, 28 Feb 2026 12:31:26 -0500 Message-ID: <20260228173244.1509663-774-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228173244.1509663-1-sashal@kernel.org> References: <20260228173244.1509663-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Tiezhu Yang [ Upstream commit 77403a06d845db1caf9a6b0867b43e9dd8de8e4a ] Currently, use %p to prevent leaking information about the kernel memory layout when printing the PC address, but the kernel log messages are not useful to debug problem if bt_address() returns 0. Given that the type of "pc" variable is unsigned long, it should use %px to print the unmodified unwinding address. Cc: stable@vger.kernel.org Signed-off-by: Tiezhu Yang Signed-off-by: Huacai Chen Signed-off-by: Sasha Levin --- arch/loongarch/kernel/unwind_orc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/loongarch/kernel/unwind_orc.c b/arch/loongarch/kernel/unwind_orc.c index 8a6e3429a860e..d6b3688a1ce97 100644 --- a/arch/loongarch/kernel/unwind_orc.c +++ b/arch/loongarch/kernel/unwind_orc.c @@ -494,7 +494,7 @@ bool unwind_next_frame(struct unwind_state *state) state->pc = bt_address(pc); if (!state->pc) { - pr_err("cannot find unwind pc at %p\n", (void *)pc); + pr_err("cannot find unwind pc at %px\n", (void *)pc); goto err; } -- 2.51.0