Date: Mon, 11 Feb 2019 07:09:02 +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: r343997 - stable/12/sys/kern Message-ID: <201902110709.x1B792wb067497@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Mon Feb 11 07:09:02 2019 New Revision: 343997 URL: https://svnweb.freebsd.org/changeset/base/343997 Log: MFC r343890: do_execve(): lock vnode when needed. Modified: stable/12/sys/kern/kern_exec.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/kern/kern_exec.c ============================================================================== --- stable/12/sys/kern/kern_exec.c Mon Feb 11 05:39:38 2019 (r343996) +++ stable/12/sys/kern/kern_exec.c Mon Feb 11 07:09:02 2019 (r343997) @@ -696,8 +696,10 @@ interpret: else error = suword(--stack_base, imgp->args->argc) == 0 ? 0 : EFAULT; - if (error != 0) + if (error != 0) { + vn_lock(imgp->vp, LK_SHARED | LK_RETRY); goto exec_fail_dealloc; + } if (args->fdp != NULL) { /* Install a brand new file descriptor table. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902110709.x1B792wb067497>