From 83cbdf3a02e64e21b54d5b54697b7a7d47f069c8 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sun, 21 Jan 2024 17:21:55 +0000 Subject: [PATCH] workaround for the static non-PIE instbin "instbin" program on the install media is no longer needed, due to fix in libc/dlfcn/init.c thanks kettenis and gkoehler --- sys/uvm/uvm_map.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c index 34c37cc0d2e..dd2135181e6 100644 --- a/sys/uvm/uvm_map.c +++ b/sys/uvm/uvm_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.c,v 1.325 2024/01/21 16:59:15 deraadt Exp $ */ +/* $OpenBSD: uvm_map.c,v 1.326 2024/01/21 17:21:55 deraadt Exp $ */ /* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */ /* @@ -3145,17 +3145,8 @@ uvm_map_protect(struct vm_map *map, vaddr_t start, vaddr_t end, continue; if (checkimmutable && (iter->etype & UVM_ET_IMMUTABLE)) { -#ifdef SMALL_KERNEL - if (iter->protection == (PROT_READ | PROT_WRITE) && - new_prot == PROT_READ) { - /* Permit RW to R as a data-locking mechanism */ - ; - } else -#endif - { - error = EPERM; - goto out; - } + error = EPERM; + goto out; } old_prot = iter->protection; if (old_prot == PROT_NONE && new_prot != old_prot) { -- 2.20.1