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
F156638109: D29094.id85223.diff
Fri, May 15, 7:24 AM
F156580084: D29094.id.diff
Thu, May 14, 8:15 PM
Unknown Object (File)
Thu, May 14, 4:09 PM
Unknown Object (File)
Tue, May 12, 6:20 PM
Unknown Object (File)
Mon, May 11, 9:48 PM
Unknown Object (File)
Mon, May 11, 7:10 PM
Unknown Object (File)
Tue, Apr 21, 6:48 AM
Unknown Object (File)
Mon, Apr 20, 8:16 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable