diff options
author | Jason King <jason.king@joyent.com> | 2018-05-15 11:12:52 -0500 |
---|---|---|
committer | Jason King <jason.king@joyent.com> | 2018-05-15 11:50:45 -0500 |
commit | 53790ce2c6cad32dc9c5254bed366c84691a3d37 (patch) | |
tree | 19626fabf8ecba742b1d459707cc002801f34b56 | |
parent | f9b2546bbcb539268f3a40c8f3e6d32ffb2b469d (diff) | |
download | illumos-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.c | 7 |
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); |