Page MenuHomeFreeBSD

arm64: Move BP hardening and SSBD workaround to CPU_FEAT framework
ClosedPublic

Authored by sarah.walker2_arm.com on Oct 15 2025, 12:35 PM.
Tags
None
Referenced Files
F163058264: D53112.id164300.diff
Sun, Jul 19, 5:10 PM
Unknown Object (File)
Sat, Jul 18, 8:45 AM
Unknown Object (File)
Wed, Jul 15, 6:49 AM
Unknown Object (File)
Wed, Jul 15, 6:49 AM
Unknown Object (File)
Mon, Jul 6, 5:01 AM
Unknown Object (File)
Sun, Jul 5, 10:49 PM
Unknown Object (File)
Sun, Jul 5, 8:19 PM
Unknown Object (File)
Sat, Jul 4, 2:42 AM
Subscribers

Details

Summary

Port the BP hardening and SSBD workaround from cpu_quirks to the
CPU_FEAT framework.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 67798
Build 64681: arc lint + arc unit

Event Timeline

The best names I can come up with for a workaround for a missing feature is feat_foo_missing or feat_foo_workaround

sys/arm64/arm64/spec_workaround.c
5

Extra line

32

Missing line

112

I'd like to keep feat_* for architectural features. The closest feature is FEAT_CSV2, however this tells us when the workaround is not needed, so maybe we could come up with something based on that.

The name is used in the hw.feat sysctls & can be used to enable/disable features/workarounds on boot.

164

The appropriate feature here is FEAT_SSBS

This revision is now accepted and ready to land.Oct 16 2025, 2:52 PM