Serialize access to the global list of pmaps with a mutex.
authormpi <mpi@openbsd.org>
Mon, 6 Sep 2021 12:59:59 +0000 (12:59 +0000)
committermpi <mpi@openbsd.org>
Mon, 6 Sep 2021 12:59:59 +0000 (12:59 +0000)
commit0764ed69a1866a05026044f29ed4195d5b50522f
treedd3d91ba2e89e13287b1db93f4bceb2b27a4db6e
parent66b69e602c36d4ab17ea8ad5ad403f1eddc70d41
Serialize access to the global list of pmaps with a mutex.

This prevents possible corruption due to a concurrent access between
pmap_growkernel() & pmap_create/pmap_destroy().

Discussed with and ok kettenis@
sys/arch/amd64/amd64/pmap.c
sys/arch/i386/i386/pmap.c
sys/arch/i386/i386/pmapae.c