]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix write only mappings on arm64
authorandrew <andrew@FreeBSD.org>
Tue, 13 Oct 2020 10:26:15 +0000 (10:26 +0000)
committerandrew <andrew@FreeBSD.org>
Tue, 13 Oct 2020 10:26:15 +0000 (10:26 +0000)
commit249542ac78fa6dca8bf8d66b74b5b6d3e3531140
tree4185973fb494986c00171587e68f0a7404ddbaef
parentdd26fbc70f3e03dbbff76b5593d5dad97a66a0e0
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