panic: curthread not pinned

From: <dsdqmzk_at_hotmail.com>
Date: Tue, 01 Oct 2024 06:16:31 UTC
Hyper-V Gen2 VM, 8 cores, 8GB RAM.  The panic is reproducible while
running `make -j8 buildworld`.  Initially installed from
FreeBSD-15.0-CURRENT-amd64-20240926-6a4f0c063718-272495-disc1.iso,
updating the kernel (that I could build) to b35f0aa4952 does not help.

panic: curthread not pinned
cpuid = 3
time = 1727763183
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame
0xfffffe008e34a1f0
vpanic() at vpanic+0x13f/frame 0xfffffe008e34a320
panic() at panic+0x43/frame 0xfffffe008e34a380
smp_targeted_tlb_shootdown_native() at
smp_targeted_tlb_shootdown_native+0x472/frame 0xfffffe008e34a4c0
pmap_remove_all() at pmap_remove_all+0x560/frame 0xfffffe008e34a540
vm_page_try_remove_all() at vm_page_try_remove_all+0x79/frame
0xfffffe008e34a570
vm_pageout_scan_inactive() at vm_pageout_scan_inactive+0x4e2/frame
0xfffffe008e34aaf0
vm_pageout_worker() at vm_pageout_worker+0x57d/frame 0xfffffe008e34aeb0
vm_pageout() at vm_pageout+0x1d7/frame 0xfffffe008e34aef0
fork_exit() at fork_exit+0x82/frame 0xfffffe008e34af30
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe008e34af30
--- trap 0xf6ffaf18, rip = 0x49434649, rsp = 0xf6d8d178, rbp =
0xf6d867d8 ---
Uptime: 18m27s
Dumping 1379 out of 8146
MB:..2%..11%..21%..31%..41%..52%..61%..71%..81%..91%