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)
Thu, Oct 1, 6:48 AM
Unknown Object (File)
Tue, Sep 29, 5:02 PM
Unknown Object (File)
Tue, Sep 22, 10:59 PM
Unknown Object (File)
Tue, Sep 22, 7:27 AM
Unknown Object (File)
Fri, Sep 4, 6:50 PM
Unknown Object (File)
Sep 2 2026, 3:12 PM
Unknown Object (File)
Aug 30 2026, 9:59 PM
Unknown Object (File)
Aug 29 2026, 10: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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable