diff options
author | Stefan Kempf <stefan@cvs.openbsd.org> | 2018-04-17 14:40:00 +0000 |
---|---|---|
committer | Stefan Kempf <stefan@cvs.openbsd.org> | 2018-04-17 14:40:00 +0000 |
commit | 5920db117427ac6fd430c44eb4918aabe1c4ffe0 (patch) | |
tree | 01ea5a173519e87563f06e08bfa4e08d972bc4f1 /sys/uvm/uvm_map.c | |
parent | db00d433e7e760613bc7dc43d86e657d4617d4ef (diff) |
Remove protection checks from uvm_map_is_stack_remappable
Other parts of uvm/pmap check for proper prot flags
already. This fixes the qemu startup problems that
semarie@ reported on tech@.
Diffstat (limited to 'sys/uvm/uvm_map.c')
-rw-r--r-- | sys/uvm/uvm_map.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c index b52968992c1..15f5ad450ae 100644 --- a/sys/uvm/uvm_map.c +++ b/sys/uvm/uvm_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.c,v 1.234 2018/04/12 17:13:44 deraadt Exp $ */ +/* $OpenBSD: uvm_map.c,v 1.235 2018/04/17 14:39:59 stefan Exp $ */ /* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */ /* @@ -1816,8 +1816,7 @@ uvm_map_is_stack_remappable(struct vm_map *map, vaddr_t addr, vaddr_t sz) } /* - * Check that the address range exists, is contiguous, and - * has the right protection. + * Check that the address range exists and is contiguous. */ for (iter = first; iter != NULL && iter->start < end; prev = iter, iter = RBT_NEXT(uvm_map_addr, iter)) { @@ -1842,18 +1841,6 @@ uvm_map_is_stack_remappable(struct vm_map *map, vaddr_t addr, vaddr_t sz) "hole in range\n", addr, end, map); return FALSE; } - - /* - * Now check the protection. - */ -#if 0 - printf("iter prot: 0x%x\n", iter->protection); -#endif - if (iter->protection != (PROT_READ | PROT_WRITE)) { - printf("map stack 0x%lx-0x%lx of map %p failed: " - "bad protection\n", addr, end, map); - return FALSE; - } } return TRUE; |