Make sure we also remove read access in pmap_page_ro() when the new
authorkettenis <kettenis@openbsd.org>
Wed, 11 Jan 2023 11:10:25 +0000 (11:10 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 11 Jan 2023 11:10:25 +0000 (11:10 +0000)
commitde1c152123b284e7ea823bb6d6bc9fe97f1404d7
tree441a40f0e30bcfcfb3dd1db6805d26fc3e59f8d1
parentbb4cb34b22b37d4afb90e5fb1eac0c60cf045daf
Make sure we also remove read access in pmap_page_ro() when the new
permissions only allow execution.  Make sure we completely invalidate
the PTE if the intersection between the old and new permissions is the
empty set.

ok deraadt@, mpi@
sys/arch/riscv64/riscv64/pmap.c