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
Unknown Object (File)
Fri, May 3, 9:04 PM
Unknown Object (File)
Wed, May 1, 2:43 AM
Unknown Object (File)
Wed, Apr 24, 2:24 PM
Unknown Object (File)
Sun, Apr 7, 7:15 AM
Unknown Object (File)
Apr 4 2024, 1:04 AM
Unknown Object (File)
Jan 27 2024, 8:11 AM
Unknown Object (File)
Jan 14 2024, 8:11 PM
Unknown Object (File)
Jan 12 2024, 2:48 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