only freshly executed processes were actually locked. (This happened
because I didn't realize how the uvm_map's contents are copied entry
by entry, and other parts are not)
ok kettenis
-/* $OpenBSD: uvm_map.c,v 1.309 2023/01/31 15:18:55 deraadt Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.310 2023/02/11 21:11:37 deraadt Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
new_map, new_entry->start, new_entry->end);
}
}
+ new_map->flags |= old_map->flags & VM_MAP_SYSCALL_ONCE;
vm_map_unlock(old_map);
vm_map_unlock(new_map);