Page MenuHomeFreeBSD

Only set delayed inval for procs using PTI
ClosedPublic

Authored by vangyzen on Mar 5 2021, 4:43 PM.
Tags
None
Referenced Files
F137105922: D29094.diff
Fri, Nov 21, 3:52 AM
Unknown Object (File)
Thu, Nov 20, 12:34 AM
Unknown Object (File)
Sun, Nov 16, 11:44 AM
Unknown Object (File)
Tue, Nov 4, 4:29 AM
Unknown Object (File)
Fri, Oct 31, 3:58 AM
Unknown Object (File)
Fri, Oct 31, 2:49 AM
Unknown Object (File)
Sun, Oct 26, 11:05 PM
Unknown Object (File)
Thu, Oct 23, 4:21 AM
Subscribers

Details

Summary

invltlb_invpcid_pti_handler() was requesting delayed TLB invalidation
even for processes that aren't using PTI. With an out-of-tree
change to avoid PTI for non-jailed root processes, this caused an
assertion failure in pmap_activate_sw_pcid_pti() when context-switching
between PTI and non-PTI processes.

Sponsored by: Dell EMC Isilon

Test Plan

With that out-of-tree change, systems using PTI always panic during boot,
soon after the first non-root process is started. With the fix, they boot.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37617
Build 34506: arc lint + arc unit