Linux 6.12-rc5 Disabling Intel's Linear Address Masking "LAM" Due To Security Concerns
- Reference: 0001501970
- News link: https://www.phoronix.com/news/Linux-Disabling-Intel-LAM
- Source link:
[2]Linear Address Masking in theory is great and can allow for some nifty features in user-space like for databases, web servers, Java, and other high level languages and for profiling and more. But besides [3]Linus Torvalds not liking Intel's "LAN" name , it's also been found to have security issues with the initial processor support.
Last week I wrote about [4]Linus Torvalds Growing Frustrated By Buggy Hardware & Theoretical CPU Attacks . As the latest on that front where Intel LAM was brought up, the patch was submitted for mainline today to go ahead and disable the Linear Address Masking feature... The patch from Intel was posted back in January but lost on the mailing list until brought up with Torvalds' recent CPU security discussions. The [5]patch explains:
"Intel feature Linear Address Masking (LAM) has a weakness related to transient execution as described in the SLAM paper. Unless Linear Address Space Separation (LASS) is enabled this weakness may be exploitable.
Until kernel adds support for LASS, only allow LAM for COMPILE_TEST, or when speculation mitigations have been disabled at compile time, otherwise keep LAM disabled."
So unless you compile your Linux kernel from source with "SPECULATION_MITIGATIONS" disabled entirely, the Linear Address Masking "ADDRESS_MASKING" support will be disabled at compile-time. Basically no making use of LAM reasonably on the Linux kernel until Linear Address Space Separation (LASS) is sorted out for preventing malicious virtual address space accesses across user/kernel mode. LASS though also requires CPU hardware-side support and so for current Arrow Lake / Lunar Lake processors the LAM support is basically worthless.
[6]
This LAM address masking disabling patch was sent out this morning as part of the [7]x86/urgent patches for the week ahead of this evening's Linux 6.12-rc5 release.
[1] https://www.phoronix.com/news/Intel-LAM-Merged-Linux-6.4
[2] https://www.phoronix.com/search/Linear+Address+Masking
[3] https://www.phoronix.com/news/Torvalds-Bashes-Intel-LAM
[4] https://www.phoronix.com/news/Torvalds-Frustrated-Buggy-HW
[5] https://lore.kernel.org/lkml/20240119162104.4ehgnj4ptjrfwyhf@windy/t/
[6] https://www.phoronix.com/image-viewer.php?id=2024&image=intel_lam_disable_lrg
[7] https://lore.kernel.org/lkml/20241027105741.GAZx4cpWYuun5QaU8K@fat_crate.local/
hf_139