HomeFreeBSD

Fix pmap_pti_add_kva() call for doublefault stack page.

Description

Fix pmap_pti_add_kva() call for doublefault stack page.

After r354889 stack got struct nmi_pcpu at top, which makes IST top
not page-aligned. Since pmap_pti_add_kva() truncates/rounds up
addresses, it erronously entered a page mapped before double fault
stack into the pti page table.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Details

Provenance
kibAuthored on
Parents
rS366415: Move ctx_switch_xsave declaration to amd64 md_var.h.
Branches
Unknown
Tags
Unknown