News: 0001460456

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux 6.9-rc6 To Fix Accidentally Disabling Mitigations By Default For Non-x86 CPUs

([Linux Security] 2 Hours Ago Linux x86/cpu)


A [1]commit made to the Linux kernel three weeks ago accidentally broke the default CPU security mitigations for non-x86 CPUs. With code sent in today via x86/urgent ahead of tonight's Linux 6.9-rc6 release, that accidental default breakage is being addressed.

A patch to be merged today to Linux Git will re-enable CPU security mitigations by default for non-x86 architectures like POWER and Arm.

Sean Christopherson of Google explained in [2]the patch fixing the issue:

"Rename x86's to CPU_MITIGATIONS, define it in generic code, and force it on for all architectures exception x86. A recent commit to turn mitigations off by default if SPECULATION_MITIGATIONS=n kinda sorta missed that "cpu_mitigations" is completely generic, whereas SPECULATION_MITIGATIONS is x86 specific.

Rename x86's SPECULATIVE_MITIGATIONS instead of keeping both and have it select CPU_MITIGATIONS, as having two configs for the same thing is unnecessary and confusing. This will also allow x86 to use the knob to manage mitigations that aren't strictly related to speculative execution.

Use another Kconfig to communicate to common code that CPU_MITIGATIONS is already defined instead of having x86's menu depend on the common CPU_MITIGATIONS. This allows keeping a single point of contact for all of x86's mitigations, and it's not clear that other architectures *want* to allow disabling mitigations at compile-time."

That patch is part of today's [3]x86 fixes pull request . There's another patch to also now ignore the "mitigations=" kernel boot parameter if the kernel is configured with CPU_MITIGATIONS=n to already have mitigations disabled.

Today's x86 fixes pull also carries the patch [4]further extending the range of AMD Zen 5 processor models .



[1] https://github.com/torvalds/linux/commit/f337a6a21e2f

[2] https://lore.kernel.org/linux-kernel/20240420000556.2645001-2-seanjc@google.com/

[3] https://lore.kernel.org/lkml/Zi4KAESpbiYDwXdA@gmail.com/

[4] https://www.phoronix.com/news/AMD-Zen-5-More-Family-26-Models



phoronix

Kettering's Observation:
Logic is an organized way of going wrong with confidence.