Address the case 2b version of inconsistent view across threads of
authorguenther <guenther@openbsd.org>
Tue, 5 Sep 2023 05:08:26 +0000 (05:08 +0000)
committerguenther <guenther@openbsd.org>
Tue, 5 Sep 2023 05:08:26 +0000 (05:08 +0000)
commitb3774972aa78c7c09292aaef4f70dfe14bf2b02d
tree3f90a41a865fc96ea3184844a094085b632da938
parent36a3d429cd1480d57f6226541ea3be887152afa0
Address the case 2b version of inconsistent view across threads of
a page undergoing copy-on-write faulting.  We fixed the case 1b
version in rev 1.125 (2022-02-01), but missed this other path.

jsg@ noted that in NetBSD Chuck Silvers had a relevant commit, their
rev 1.234 (2023-08-13), which looks like it fixed both cases due
to their refactoring of common code into a uvmfault_promote()
function.

ok mpi@ jca@
sys/uvm/uvm_fault.c