Grab the mutex before iterating on the global list.
authormpi <mpi@openbsd.org>
Fri, 19 Aug 2022 05:53:19 +0000 (05:53 +0000)
committermpi <mpi@openbsd.org>
Fri, 19 Aug 2022 05:53:19 +0000 (05:53 +0000)
commit5ec534b84a8a5eb5bfca9ad4edeb04fac69fadf6
tree7de34e2d70d75bb53f0103cda83afdeda1bce1ff
parent5756469a33d38cc6f5e0db4080cf402c22e4adb9
Grab the mutex before iterating on the global list.

Prevent race reported some months ago.

ok mlarkin@, jsg@, kn@
sys/uvm/uvm_pager.c