summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason King <jason.king@joyent.com>2018-05-15 11:12:52 -0500
committerJason King <jason.king@joyent.com>2018-05-15 11:50:45 -0500
commit53790ce2c6cad32dc9c5254bed366c84691a3d37 (patch)
tree19626fabf8ecba742b1d459707cc002801f34b56
parentf9b2546bbcb539268f3a40c8f3e6d32ffb2b469d (diff)
downloadillumos-joyent-53790ce2c6cad32dc9c5254bed366c84691a3d37.tar.gz
OS-6935 Possible race in lx_start_nfs_lockdOS-6935
-rw-r--r--usr/src/uts/common/brand/lx/os/lx_lockd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/src/uts/common/brand/lx/os/lx_lockd.c b/usr/src/uts/common/brand/lx/os/lx_lockd.c
index 234e815d3f..d6d965398a 100644
--- a/usr/src/uts/common/brand/lx/os/lx_lockd.c
+++ b/usr/src/uts/common/brand/lx/os/lx_lockd.c
@@ -10,7 +10,7 @@
*/
/*
- * Copyright 2017 Joyent, Inc.
+ * Copyright 2018 Joyent, Inc.
*/
/*
@@ -77,6 +77,11 @@ lx_lockd_alive(pid_t lockd_pid)
}
mutex_enter(&p->p_lock);
+ if (p->p_stat == SZOMB || (p->p_flag & SEXITING) != 0) {
+ mutex_exit(&p->p_lock);
+ mutex_exit(&pidlock);
+ return (B_FALSE);
+ }
vp = p->p_exec;
VN_HOLD(vp);
mutex_exit(&p->p_lock);