~/talk

Dynamic mitigations

Talkat Linux Plumbers Conference 2025 · 2025-12-11..12-13· [security]
links:none on file
slides:none on file

Cloud VMs can change CPU mitigation policy at runtime via a writable sysfs reconfiguration interface that accepts bug-style kernel options and causes the kernel to re-evaluate and repatch alternatives, retpolines and feature bits. Repatching uses a freezer and a new stop_machine NMI path, takes about 50 ms, and caught several upstream bugs during testing. Measured impact: cumulative mitigations cost ~20% on average and >50% on some workloads; current set includes about 16 mitigation switches and BPF jits may need reload after changes.

AI-written summary · about

  1. 0:00Introduction to mitigations
  2. 1:24Performance impact of mitigations
  3. 2:27Why dynamic mitigations
  4. 3:10Cloud deployment use case
  5. 4:35Mitigation changes and testing
  6. 6:23Implementation and RFC concerns
  7. 7:24Community feedback and concerns
  8. 11:37Simpler mitigations for users
  9. 15:14DebugFS and production risks
  10. 18:41DebugFS as an ABI problem
  11. 21:12Server space focus
  12. 23:03Out-of-tree adoption and urgency
  13. 24:06Alternative API locations
  14. 26:15Fine-grained mitigation control
  15. 26:59BPF limitations
  16. 28:22Repatching flow and big hammers
  17. 31:56Stop machine NMI details
  18. 33:02Emergency use case justification
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.