Linux 7.4 内核开发树合入 AMD Zen 6 补丁 调整 SRSO 与 SafeRET 防护机制Linux 7.4 Kernel Tree Merges AMD Zen 6 Patches: Adjusts SRSO and SafeRET Protection Mechanisms


AI free token/AI免费积分

IT之家 10 月 22 日消息,据 Phoronix 今日报道,Linux 7.4 内核已合入一项针对 AMD Zen 6 处理器的安全缓解机制调整,借助利用新处理器给出的分支目标缓冲区(BTB)上下文隔离能力,允许平台关闭开销较大的 SafeRET 缓解措施,以减少相关安全防护带来的表现成本。

Linux 7.4 内核开发树合入 AMD Zen 6 补丁 调整 SRSO 与 SafeRET 防护机制

这项调整来自 Linux 7.4 的 x86/bugs 代码合并请求。依据提交说明,AMD Zen 6 的 BTB 兼容按上下文标记分支预测信息,有助于隔离使用者态与内核态、虚拟机客户机与宿主机等不同执行环境。因而,在满足相应硬件条件时,内核不再需要依赖 SafeRET 来缓解特定的推测执行安全漏洞。

AMD 工程师 Borislav Petkov 提交的补丁已于 2026 年 9 月 1 日合入 Linux 内核开发树的 x86/bugs 分支。补丁还调整了内核对相关安全缓解状态的报告方式,避免在未启用 RETPOLINE 的构建中错误报告 Spectre v2 防护状态。IT之家提醒,该补丁预计进入 Linux 7.4,但最终版本归属仍取决于内核开发进度。

需要注意的是,BTB 上下文隔离并不意味着所有推测执行攻击风险都已消除。该硬件能力主要隔离使用者态与内核态、虚拟机客户机与宿主机之间的分支预测上下文;对于使用者进程之间、虚拟机之间的相关攻击路径,仍需依靠 Spectre v2 防护设置及上下文切换时的间接分支预测屏障(IBPB)等机制开展防护。

相关阅读:

本文来源:https://www.ithome.com/1/016/720.htm
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

October 22 — IT Home reports that according to Phoronix, the Linux 7.4 kernel has merged an adjustment to a security mitigation mechanism for AMD Zen 6 processors. Leveraging the branch target buffer (BTB) context isolation capability of the new processor, it allows platforms to disable the more costly SafeRET mitigation, reducing performance overhead from related security protections.

This adjustment comes from a Linux 7.4 x86/bugs code merge request. According to the commit description, AMD Zen 6 BTB is compatible with context-tagged branch prediction information, helping isolate different execution environments such as user-space and kernel-space, and guest versus host in virtual machines. Therefore, when the corresponding hardware conditions are met, the kernel no longer needs to rely on SafeRET to mitigate specific speculative execution vulnerabilities.

The patch submitted by AMD engineer Borislav Petkov was merged into the x86/bugs branch of the Linux kernel development tree on September 1, 2026. The patch also adjusts how the kernel reports related security mitigation status, avoiding incorrect reporting of Spectre v2 protection status in builds without RETHPOLINE enabled. IT Home notes that this patch is expected to enter Linux 7.4, though the final version depends on kernel development progress.

It should be noted that BTB context isolation does not mean all speculative execution attack risks are eliminated. This hardware capability primarily isolates branch prediction context between user-space and kernel-space, and between guest and host in virtual machines. For attack paths between user processes and between virtual machines, protection still relies on Spectre v2 mitigation settings and indirect branch predictor barriers (IBPB) during context switches.

Source: https://www.ithome.com/1/016/720.htm If you have copyright concerns, please contact us at 13951431913#139.com or submit a comment on the right.

Linux 7.4 Kernel Tree Merges AMD Zen 6 Patches: Adjusts SRSO and SafeRET Protection Mechanisms

暂无评论,快来发表第一条评论吧!No comments yet. Be the first!

📮 需求咨询📮 Inquiry