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
F87810868: D31682.id94187.diff
Mon, Jul 8, 2:54 AM
Unknown Object (File)
Apr 14 2024, 5:29 PM
Unknown Object (File)
Apr 8 2024, 1:56 PM
Unknown Object (File)
Apr 2 2024, 10:16 PM
Unknown Object (File)
Jan 19 2024, 5:45 AM
Unknown Object (File)
Dec 31 2023, 1:40 PM
Unknown Object (File)
Dec 23 2023, 1:04 AM
Unknown Object (File)
Nov 22 2023, 12:14 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 Not Applicable
Unit
Tests Not Applicable

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