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
Unknown Object (File)
Thu, Aug 13, 1:39 AM
Unknown Object (File)
Wed, Aug 12, 12:22 AM
Unknown Object (File)
Tue, Aug 11, 7:29 AM
Unknown Object (File)
Mon, Aug 10, 1:05 PM
Unknown Object (File)
Sun, Aug 9, 7:32 PM
Unknown Object (File)
Sun, Aug 9, 5:18 AM
Unknown Object (File)
Sat, Aug 8, 6:13 AM
Unknown Object (File)
Fri, Aug 7, 8:02 PM
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 67823
Build 64706: 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
6

Extra line

33

Missing line

113

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.

165

The appropriate feature here is FEAT_SSBS

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