From: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
To: Jonathan Marek <jonathan@marek.ca>, Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>,
James Morse <james.morse@arm.com>,
Douglas Anderson <dianders@chromium.org>,
Trilok Soni <quic_tsoni@quicinc.com>,
shechenglong <shechenglong@xfusion.com>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Shameer Kolothum <skolothumtho@nvidia.com>,
linux-arm-kernel@lists.infradead.org,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] arm64: proton-pack: Fix hard lockup when !MITIGATE_SPECTRE_BRANCH_HISTORY
Date: Thu, 27 Nov 2025 03:08:47 +0200 [thread overview]
Message-ID: <06138434-97a3-4363-925a-73b084524131@linaro.org> (raw)
In-Reply-To: <20251117051211.16108-1-jonathan@marek.ca>
On 11/17/25 07:12, Jonathan Marek wrote:
> The "drop print" commit removed the whole branch and not just the print.
> For some ARM64 cpus, this leads to hard lockup when
> CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY is not enabled.
>
> Fixes: 62e72463ca71 ("arm64: proton-pack: Drop print when !CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY")
> ---
> arch/arm64/kernel/proton-pack.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/kernel/proton-pack.c b/arch/arm64/kernel/proton-pack.c
> index c7d70d04c164c..80a580e019c50 100644
> --- a/arch/arm64/kernel/proton-pack.c
> +++ b/arch/arm64/kernel/proton-pack.c
> @@ -1032,6 +1032,8 @@ void spectre_bhb_enable_mitigation(const struct arm64_cpu_capabilities *entry)
>
> if (arm64_get_spectre_v2_state() == SPECTRE_VULNERABLE) {
> /* No point mitigating Spectre-BHB alone. */
> + } else if (!IS_ENABLED(CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY)) {
> + /* Do nothing */
> } else if (supports_ecbhb(SCOPE_LOCAL_CPU)) {
> state = SPECTRE_MITIGATED;
> set_bit(BHB_HW, &system_bhb_mitigations);
If CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY is unset, the fix is needed
to boot Linux on Lantronix SM8450-HDK and SM8550-HDK boards, which are
otherwise broken since v6.18-rc6.
Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Tested-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
--
Best wishes,
Vladimir
prev parent reply other threads:[~2025-11-27 1:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-17 5:12 Jonathan Marek
2025-11-23 17:50 ` Jonathan Marek
2025-11-24 14:41 ` Will Deacon
2025-11-27 1:08 ` Vladimir Zapolskiy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=06138434-97a3-4363-925a-73b084524131@linaro.org \
--to=vladimir.zapolskiy@linaro.org \
--cc=catalin.marinas@arm.com \
--cc=dianders@chromium.org \
--cc=james.morse@arm.com \
--cc=jonathan@marek.ca \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=quic_tsoni@quicinc.com \
--cc=shechenglong@xfusion.com \
--cc=skolothumtho@nvidia.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®