Re: [PATCH RFC] efi/libstub: arm64: Disable pointer authentication on the ThinkPad X13s

From: Marc Zyngier

Date: Sun Dec 06 2026 - 06:02:16 EST


On Sat, 05 Dec 2026 18:50:43 +0000,
Christopher Obbard <chris.obbard@xxxxxxxxxxxxxxxx> 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.