diff options
author | gibbs <gibbs@FreeBSD.org> | 2013-02-20 17:55:17 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 2013-02-20 17:55:17 +0000 |
commit | 6e71d34d7d0fa194ecffe60eaa87326f1849eaef (patch) | |
tree | ad56ed6c3ad96020c3fe26d73d210689d51902dc /lib | |
parent | 25887f42a7f1a07a4d9ecf17f7886847b5d7b97c (diff) | |
download | FreeBSD-src-6e71d34d7d0fa194ecffe60eaa87326f1849eaef.zip FreeBSD-src-6e71d34d7d0fa194ecffe60eaa87326f1849eaef.tar.gz |
Avoid panic when tearing down the DTrace pid provider for a
process that has crashed.
sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c:
In fasttrap_pid_disable(), we cannot PHOLD the proc
structure for a process that no longer exists, but
we still have other, fasttrap specific, state that
must be cleaned up for probes that existed in the
dead process. Instead of returning early if the
process related to our probes isn't found,
conditionalize the locking and carry on with a NULL
proc pointer. The rest of the fasttrap code already
understands that a NULL proc is possible and does
the right things in this case.
Sponsored by: Spectra Logic Corporation
Reviewed by: rpaulo, gnn
MFC after: 1 week
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions