By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: AMD Dev Proposes Dynamic Mitigations For Linux: Run-Time Toggling Of CPU Mitigations
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > AMD Dev Proposes Dynamic Mitigations For Linux: Run-Time Toggling Of CPU Mitigations
Computing

AMD Dev Proposes Dynamic Mitigations For Linux: Run-Time Toggling Of CPU Mitigations

News Room
Last updated: 2025/10/13 at 3:33 PM
News Room Published 13 October 2025
Share
SHARE

A big patch series was posted today for the Linux kernel that would allow enabling/disabling CPU security mitigations at run-time rather than the current handling that can only be managed at boot-time via various Linux kernel command-line arguments. Thus due to changing security needs, differing workloads mandating different CPU security concerns and the like, this proposed feature would allow Spectre, Meltdown, and other CPU security mitigations to all be toggled at run-time.

AMD engineer David Kaplan who recently wrapped up work on the Attack Vector Controls for the Linux kernel has next turned his attention to Dynamic Mitigations: the ability to enable/disable CPU security mitigations at run-time without needing a reboot or Kexec’ing to a new kernel.

To overcome the limitation of only being able to change CPU security mitigations at boot time, the patches sent out today under a “request for comments” would allow writing the CPU security mitigation option values to /sys/devices/system/cpu/mitigations. For example, echo “mitigations=off” > /sys/devices/system/cpu/mitigations to disable all the CPU security mitigations or other existing kernel boot argument values like “spectre_v2=retpoline tsa=off” to this new sysfs mitigations file.

“As the performance cost of CPU mitigations can be significant, selecting the right set of mitigations is important to achieve the correct balance of performance/security.”

Among the intended use-cases are for better run-time policy handling, changing mitigations as a result of new CPU security findings but without having to reboot the systems/servers, quick mitigation testing to avoid to reboot, etc.

dynamic mitigations

AMD’s David Kaplan went on to explain how this run-time patching of the kernel is handled for the mitigations:

“Re-patching the kernel is expected to be a very rare operation and is done under very big hammers. All tasks are put into the freezer and the re-patching is then done under the (new) stop_machine_nmi() routine.

To re-patch the kernel, it is first reverted back to its compile-time state. The original bytes from alternatives, retpolines, etc. are saved during boot so they can later be used to restore the original kernel image. After that, the kernel is patched based on the new feature flags.

This simplifies the re-patch process as restoring the original kernel image is relatively straightforward. In other words, instead of having to re-patch from mitigation A to mitigation B directly, we first restore the original image and then patch from that to mitigation B, similar to if the system had booted with mitigation B selected originally.”

Kaplan observed the run-time re-patching of the kernel to take around 50 ms.

Those interested in the big 56 patch RFC series can find the proposed Dynamic Mitigations code on the Linux kernel mailing list.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article A New ‘Super Genius’ AI Is Here – Are You Ready to Profit?
Next Article Equity threatens mass direct action over use of actors’ images in AI content
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Alibaba welcomes Tony Parker as ambassador to boost B2B market expansion  · TechNode
Computing
Google Meet adds a new trick for when you’re not camera-ready
News
Refactoring 035 – Use Separate Exception Hierarchies for Business and Technical Errors | HackerNoon
Computing
Mental Models in Architecture and Societal Views of Technology: A Conversation with Nimisha Asthagiri
News

You Might also Like

Computing

Alibaba welcomes Tony Parker as ambassador to boost B2B market expansion  · TechNode

2 Min Read
Computing

Refactoring 035 – Use Separate Exception Hierarchies for Business and Technical Errors | HackerNoon

4 Min Read
Computing

Xiaohongshu gets funding from former Facebook investor DST Global · TechNode

1 Min Read
Computing

The History and Future of CAD in Engineering | HackerNoon

4 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?