]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix write only mappings on arm64
authorAndrew Turner <andrew@FreeBSD.org>
Tue, 13 Oct 2020 10:26:15 +0000 (10:26 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Tue, 13 Oct 2020 10:26:15 +0000 (10:26 +0000)
commitf56a08c810a555a218f11aa172ed40f6a8dc3a5c
tree4185973fb494986c00171587e68f0a7404ddbaef
parent2cef3afd7b50b18d30085f5943c09b061215a75f
Fix write only mappings on arm64

When trapping on a wrote access to a buffer the kernel has mapped as write
only we should only pass the VM_PROT_WRITE flag. Previously the call to
vm_fault_trap as the VM_PROT_READ flag was unexpected.

Reported by: manu
Sponsored by: Innovate UK
sys/arm64/arm64/trap.c
tests/sys/vm/mmap_test.c