-/* $OpenBSD: exec_subr.c,v 1.60 2022/10/21 18:11:55 deraadt Exp $ */
+/* $OpenBSD: exec_subr.c,v 1.61 2022/10/21 19:13:31 deraadt Exp $ */
/* $NetBSD: exec_subr.c,v 1.9 1994/12/04 03:10:42 mycroft Exp $ */
/*
} else {
if (cmd->ev_flags & VMCMD_IMMUTABLE)
uvm_map_immutable(&p->p_vmspace->vm_map,
- cmd->ev_addr, round_page(cmd->ev_len),
- 1, "pagedvn");
+ cmd->ev_addr, round_page(cmd->ev_len), 1);
}
return (error);
if (cmd->ev_flags & VMCMD_IMMUTABLE) {
//printf("imut readvn\n");
uvm_map_immutable(&p->p_vmspace->vm_map,
- cmd->ev_addr, round_page(cmd->ev_len),
- 1, "readvn");
+ cmd->ev_addr, round_page(cmd->ev_len), 1);
}
}
return (error);
if (cmd->ev_flags & VMCMD_IMMUTABLE) {
//printf("imut zero\n");
uvm_map_immutable(&p->p_vmspace->vm_map,
- cmd->ev_addr, round_page(cmd->ev_len),
- 1, "zero");
+ cmd->ev_addr, round_page(cmd->ev_len), 1);
}
return error;
}
/* ev_addr, ev_len may be misaligned, so maximize the region */
uvm_map_immutable(&p->p_vmspace->vm_map, trunc_page(cmd->ev_addr),
- round_page(cmd->ev_addr + cmd->ev_len), 0, "mutable");
+ round_page(cmd->ev_addr + cmd->ev_len), 0);
return 0;
}
-/* $OpenBSD: kern_exec.c,v 1.236 2022/10/21 18:11:55 deraadt Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.237 2022/10/21 19:13:31 deraadt Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
return (ENOMEM);
}
uvm_map_immutable(&pr->ps_vmspace->vm_map, pr->ps_sigcode,
- pr->ps_sigcode + round_page(sz), 1, "sig");
+ pr->ps_sigcode + round_page(sz), 1);
/* Calculate PC at point of sigreturn entry */
pr->ps_sigcoderet = pr->ps_sigcode + (sigcoderet - sigcode);
return (ENOMEM);
}
uvm_map_immutable(&pr->ps_vmspace->vm_map, pr->ps_timekeep,
- pr->ps_timekeep + timekeep_sz, 1, "time");
+ pr->ps_timekeep + timekeep_sz, 1);
return (0);
}
-/* $OpenBSD: uvm_map.c,v 1.298 2022/10/16 16:16:37 deraadt Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.299 2022/10/21 19:13:32 deraadt Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
* => map must be unlocked
*/
int
-uvm_map_immutable(struct vm_map *map, vaddr_t start, vaddr_t end, int imut, char *name)
+uvm_map_immutable(struct vm_map *map, vaddr_t start, vaddr_t end, int imut)
{
struct vm_map_entry *entry;
-/* $OpenBSD: uvm_map.h,v 1.78 2022/10/16 16:16:37 deraadt Exp $ */
+/* $OpenBSD: uvm_map.h,v 1.79 2022/10/21 19:13:33 deraadt Exp $ */
/* $NetBSD: uvm_map.h,v 1.24 2001/02/18 21:19:08 chs Exp $ */
/*
vaddr_t uvm_map_pie(vaddr_t);
vaddr_t uvm_map_hint(struct vmspace *, vm_prot_t, vaddr_t, vaddr_t);
int uvm_map_syscall(struct vm_map *, vaddr_t, vaddr_t);
-int uvm_map_immutable(struct vm_map *, vaddr_t, vaddr_t, int, char *);
+int uvm_map_immutable(struct vm_map *, vaddr_t, vaddr_t, int);
int uvm_map_inherit(struct vm_map *, vaddr_t, vaddr_t, vm_inherit_t);
int uvm_map_advice(struct vm_map *, vaddr_t, vaddr_t, int);
void uvm_map_init(void);
-/* $OpenBSD: uvm_mmap.c,v 1.173 2022/10/07 14:59:39 deraadt Exp $ */
+/* $OpenBSD: uvm_mmap.c,v 1.174 2022/10/21 19:13:33 deraadt Exp $ */
/* $NetBSD: uvm_mmap.c,v 1.49 2001/02/18 21:19:08 chs Exp $ */
/*
if (addr > SIZE_MAX - size)
return EINVAL; /* disallow wrap-around. */
- return uvm_map_immutable(&p->p_vmspace->vm_map, addr, addr+size, 1, "sys");
+ return uvm_map_immutable(&p->p_vmspace->vm_map, addr, addr+size, 1);
}
/*