Date: Fri, 7 Dec 2018 00:50:03 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r341673 - in stable/12/sys: kern sys Message-ID: <201812070050.wB70o3CE084376@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Fri Dec 7 00:50:02 2018 New Revision: 341673 URL: https://svnweb.freebsd.org/changeset/base/341673 Log: MFC r340860: Provide storage for the process feature control flags in struct proc. Modified: stable/12/sys/kern/kern_exec.c stable/12/sys/kern/kern_fork.c stable/12/sys/sys/proc.h Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/kern/kern_exec.c ============================================================================== --- stable/12/sys/kern/kern_exec.c Fri Dec 7 00:47:05 2018 (r341672) +++ stable/12/sys/kern/kern_exec.c Fri Dec 7 00:50:02 2018 (r341673) @@ -488,6 +488,7 @@ interpret: goto exec_fail_dealloc; imgp->proc->p_osrel = 0; + imgp->proc->p_fctl0 = 0; /* * Implement image setuid/setgid. Modified: stable/12/sys/kern/kern_fork.c ============================================================================== --- stable/12/sys/kern/kern_fork.c Fri Dec 7 00:47:05 2018 (r341672) +++ stable/12/sys/kern/kern_fork.c Fri Dec 7 00:50:02 2018 (r341673) @@ -415,6 +415,7 @@ do_fork(struct thread *td, struct fork_req *fr, struct bcopy(&p1->p_startcopy, &p2->p_startcopy, __rangeof(struct proc, p_startcopy, p_endcopy)); + p2->p_fctl0 = p1->p_fctl0; pargs_hold(p2->p_args); PROC_UNLOCK(p1); Modified: stable/12/sys/sys/proc.h ============================================================================== --- stable/12/sys/sys/proc.h Fri Dec 7 00:47:05 2018 (r341672) +++ stable/12/sys/sys/proc.h Fri Dec 7 00:50:02 2018 (r341673) @@ -681,6 +681,7 @@ struct proc { */ LIST_ENTRY(proc) p_orphan; /* (e) List of orphan processes. */ LIST_HEAD(, proc) p_orphans; /* (e) Pointer to list of orphans. */ + uint32_t p_fctl0; /* (x) ABI feature control, ELF note */ }; #define p_session p_pgrp->pg_session
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812070050.wB70o3CE084376>