HomeFreeBSD

pmap: Keep PTI page table pages busy

Description

pmap: Keep PTI page table pages busy

PTI page table pages are allocated from a VM object, so must be
exclusively busied when they are freed, e.g., when a thread loses a race
in pmap_pti_pde(). Simply keep PTPs busy at all times, as was done for
some other kernel allocators in commit
e9ceb9dd110e04fc19729b4e9fb1c8bfbb8398a3.

Also remove some redundant assertions on "ref_count":
vm_page_unwire_noq() already asserts that the page's reference count is
greater than zero.

Reported by: syzkaller
Reviewed by: kib
Sponsored by: The FreeBSD Foundation

(cherry picked from commit c6d092b5107d1a3acefa977828b8130c0505fe7b)

Details

Provenance
markjAuthored on Jun 15 2022, 2:19 PM
Parents
rGc31c881f7eee: Fix the test used to wait for AP startup on x86, arm64, riscv
Branches
Unknown
Tags
Unknown