From: stefan Date: Tue, 19 Dec 2017 10:04:59 +0000 (+0000) Subject: Remove unused ps_stackgap from process struct X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c456e48bde5468638ee845b7d810a2fb1fbc2ec2;p=openbsd Remove unused ps_stackgap from process struct Nothing uses this field since Linux compat was removed. ok mpi@ deraadt@ guenther@ --- diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index c12c5848240..eba148ed24a 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exec.c,v 1.190 2017/12/12 01:12:34 deraadt Exp $ */ +/* $OpenBSD: kern_exec.c,v 1.191 2017/12/19 10:04:59 stefan Exp $ */ /* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */ /*- @@ -453,9 +453,6 @@ sys_execve(struct proc *p, void *v, register_t *retval) if (error) goto exec_abort; - /* old "stackgap" is gone now */ - pr->ps_stackgap = 0; - #ifdef MACHINE_STACK_GROWS_UP pr->ps_strings = (vaddr_t)vm->vm_maxsaddr + sgap; if (uvm_map_protect(&vm->vm_map, (vaddr_t)vm->vm_maxsaddr, diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 1addf7529cd..d73e6aaa60a 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.h,v 1.243 2017/12/14 00:41:58 dlg Exp $ */ +/* $OpenBSD: proc.h,v 1.244 2017/12/19 10:04:59 stefan Exp $ */ /* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */ /*- @@ -203,7 +203,6 @@ struct process { char ps_comm[MAXCOMLEN+1]; vaddr_t ps_strings; /* User pointers to argv/env */ - vaddr_t ps_stackgap; /* User pointer to the "stackgap" */ vaddr_t ps_sigcode; /* User pointer to the signal code */ vaddr_t ps_sigcoderet; /* User pointer to sigreturn retPC */ u_long ps_sigcookie;