Page MenuHomeFreeBSD

amd64: remove lfence after swapgs on syscall entry
ClosedPublic

Authored by kib on Aug 25 2021, 7:35 PM.
Tags
None
Referenced Files
F107491072: D31682.diff
Tue, Jan 14, 11:11 PM
Unknown Object (File)
Nov 23 2024, 10:21 AM
Unknown Object (File)
Nov 15 2024, 3:04 PM
Unknown Object (File)
Nov 10 2024, 2:41 PM
Unknown Object (File)
Nov 10 2024, 6:27 AM
Unknown Object (File)
Sep 30 2024, 2:02 PM
Unknown Object (File)
Sep 16 2024, 2:31 PM
Unknown Object (File)
Sep 3 2024, 9:54 PM
Subscribers
None

Details

Summary

According to the description of SBSS issue at
https://software.intel.com/content/www/us/en/develop/articles/software-security-guidance/technical-documentation/speculative-behavior-swapgs-and-segment-registers.html
lfence after swapgs is needed only for the case when swapgs could be speculatively executed. Since syscall entry, unlike exception and interrupt entries, executes swapgs unconditionally, there is no opportunity for speculation.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Aug 25 2021, 7:35 PM
kib created this revision.
kib edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Aug 26 2021, 12:25 PM