diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2023-01-05 20:35:45 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2023-01-05 20:35:45 +0000 |
commit | d35df23ac2a05a82eb086c63e5a1d479139b9bb0 (patch) | |
tree | 5a09880d3d4e80274434302499708a61ab136817 /sys/arch/arm | |
parent | 57cc274f924cadcf8e22e701c271491ba85141e6 (diff) |
The access type for a prefetch abort should not include PROT_READ,
otherwise faults on executable pages mapped only as PROT_EXEC will
not work.
ok deraadt@
Diffstat (limited to 'sys/arch/arm')
-rw-r--r-- | sys/arch/arm/arm/fault.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm/arm/fault.c b/sys/arch/arm/arm/fault.c index d020c26b231..62afab6e6e8 100644 --- a/sys/arch/arm/arm/fault.c +++ b/sys/arch/arm/arm/fault.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fault.c,v 1.46 2022/01/02 05:59:53 jsg Exp $ */ +/* $OpenBSD: fault.c,v 1.47 2023/01/05 20:35:44 kettenis Exp $ */ /* $NetBSD: fault.c,v 1.46 2004/01/21 15:39:21 skrll Exp $ */ /* @@ -578,7 +578,7 @@ prefetch_abort_handler(trapframe_t *tf) #endif KERNEL_LOCK(); - error = uvm_fault(map, va, 0, PROT_READ | PROT_EXEC); + error = uvm_fault(map, va, 0, PROT_EXEC); KERNEL_UNLOCK(); if (error == 0) { |