From: Marc Zyngier <maz@kernel.org>
To: Christopher Obbard <chris.obbard@oss.qualcomm.com>
Cc: Ard Biesheuvel <ardb@kernel.org>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Bjorn Andersson <andersson@kernel.org>,
Johan Hovold <johan@kernel.org>,
linux-efi@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC] efi/libstub: arm64: Disable pointer authentication on the ThinkPad X13s
Date: Sun, 06 Dec 2026 11:02:09 +0000 [thread overview]
Message-ID: <86o6aywu32.wl-maz@kernel.org> (raw)
In-Reply-To: <20261205-wip-obbardc-qcom-x13s-nopauth-v1-1-913a21a18286@oss.qualcomm.com>
On Sat, 05 Dec 2026 18:50:43 +0000,
Christopher Obbard <chris.obbard@oss.qualcomm.com> wrote:
>
> The Lenovo ThinkPad X13s (sc8280xp) firmware appears not to let the
> kernel use pointer authentication, and the kernel is not known to boot
> if it tries. Today every user has to know to add arm64.nopauth to the
> command line, and the X13s wiki, the Ubuntu X13s GRUB settings and the
> Debian installation guide all tell them to. This is still the case with
> BIOS 1.67 (N3HET95W) and 1.68 (update N3HUJ26W), the latest at the time
> of writing.
>
> ARM Pointer authentication is not working (needs firmware fixes,
> disabled via kernel commandline).
>
> The stub can already identify the machine from SMBIOS in
> check_platform_features(), but has no way to pass an option on to the
> kernel. Add efi_quirk_cmdline, which check_platform_features() can set,
> and put it in front of the command line before the kernel is booted.
> On arm64 the command line goes into /chosen/bootargs, which the early
> idreg override code reads, so this works for options such as
> arm64.nopauth that have to take effect before the kernel proper
> starts. The options go first, because anything after "--" is passed
> to init. If the new command line cannot be allocated, warn and boot
> with the original one.
>
> Set it to arm64.nopauth on the X13s, identified by a manufacturer of
> "LENOVO" and a family of "ThinkPad X13s Gen 1" in the SMBIOS type 1
> record, as reported by the 21BX, 21BY and 4810 machine types. Check
> the record length before reading the family field, which older SMBIOS
> versions do not have. Only do it when the kernel is built with pointer
> authentication support, since the option does nothing otherwise.
I think there is a misunderstanding about the purpose of the override
command line options. They *are* the mitigation for indigent firmware,
and should never be added by the kernel itself, stub or otherwise.
The manufacturer could easily fix their FW and be done with it (in
most cases, this is a single bit to flip in SCR_EL3), but decided
against it. This is their call, but I can't see why it should be the
kernel's job to paper over this. And if they decided to fix it
tomorrow, we'd have to add some more tracking to allow the feature.
Do you see how this completely fails to scale? Because this is not
only this particular Lenovo laptop. It is *all* Qualcomm machines,
which have varying degrees of broken firmware (pauth for all pre-X1
implementations, cntpoff for X1, and I'm willing to bet my own weight
in cheese that we will get something on X2 in the coming weeks).
At the end of the day, this is about vendors acting irresponsibly, and
the user should know about that. Forcing them to insert the override
serves as a reminder that they are using a sub-par machine, and that
they can make their money talk next time they decide to buy something
to run Linux on.
Thanks,
M.
--
Without deviation from the norm, progress is not possible.
prev parent reply other threads:[~2026-12-06 11:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 18:50 [PATCH RFC] efi/libstub: arm64: Disable pointer authentication on the ThinkPad X13s Christopher Obbard
2026-12-06 11:02 ` Marc Zyngier [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=86o6aywu32.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=andersson@kernel.org \
--cc=ardb@kernel.org \
--cc=chris.obbard@oss.qualcomm.com \
--cc=ilias.apalodimas@linaro.org \
--cc=johan@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.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