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
Unknown Object (File)
Mon, Sep 30, 2:02 PM
Unknown Object (File)
Mon, Sep 16, 2:31 PM
Unknown Object (File)
Sep 3 2024, 9:54 PM
Unknown Object (File)
Aug 23 2024, 11:03 PM
Unknown Object (File)
Aug 22 2024, 8:33 PM
Unknown Object (File)
Aug 22 2024, 6:45 AM
Unknown Object (File)
Aug 11 2024, 12:02 AM
Unknown Object (File)
Jul 8 2024, 2:54 AM
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