We changed powerpc64 to allow write access to write only mappings.
authorbluhm <bluhm@openbsd.org>
Thu, 20 May 2021 12:34:35 +0000 (12:34 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 20 May 2021 12:34:35 +0000 (12:34 +0000)
commit68e8b34d613e6f4c1e8cd29063aa3c9aa58bffe2
treedded47cd65aed7767c4260784b71fe593a5cf6c4
parent3de880a10ae54de2bdcfb62ef9faa72924a04357
We changed powerpc64 to allow write access to write only mappings.
Although the page table cannot prevent reads on write only pages,
the first access in trap() knows what is is.  This should be passed
to uvm_fault().  Then regress/sys/kern/fork-exit passes.  Copy the
new powerpc64 logic to powerpc.
OK tobhe@ kettenis@ deraadt@
sys/arch/powerpc/powerpc/trap.c