oops, a silly typo
authorderaadt <deraadt@openbsd.org>
Tue, 24 Jan 2023 00:16:08 +0000 (00:16 +0000)
committerderaadt <deraadt@openbsd.org>
Tue, 24 Jan 2023 00:16:08 +0000 (00:16 +0000)
sys/uvm/uvm_map.c

index 95a7fb2..f99ac26 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: uvm_map.c,v 1.306 2023/01/24 00:14:30 deraadt Exp $   */
+/*     $OpenBSD: uvm_map.c,v 1.307 2023/01/24 00:16:08 deraadt Exp $   */
 /*     $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
 
 /*
@@ -4471,7 +4471,7 @@ uvm_map_extract(struct vm_map *srcmap, vaddr_t start, vsize_t len,
                kernel_map->size += cp_len;
                if (flags & UVM_EXTRACT_FIXPROT)
                        newentry->protection = newentry->max_protection &
-                           ~PROT_MAX;
+                           ~PROT_EXEC;
 
                /*
                 * Step 2: perform pmap copy.