Change the scope of the locking in pmap_extract() to prevent a race between
authorkettenis <kettenis@openbsd.org>
Sat, 11 Sep 2021 18:08:32 +0000 (18:08 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 11 Sep 2021 18:08:32 +0000 (18:08 +0000)
commit264a3cf8aafd39cea09bd19f65ac4688c21d1a08
tree2446912fc4478918588e5a384c4f8f28e406424a
parent4cee6ea45e6117cba31700ea579902699b793601
Change the scope of the locking in pmap_extract() to prevent a race between
walking the page tables and another thread calling pmap_remove() that ends
up removing a page table page.

tested by sthen@
ok deraadt@, mpi@
sys/arch/i386/i386/pmap.c
sys/arch/i386/i386/pmapae.c