]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
If we fail to write to a vnode during a ktrace write, then we drop all
authorjhb <jhb@FreeBSD.org>
Thu, 1 Aug 2002 13:35:38 +0000 (13:35 +0000)
committerjhb <jhb@FreeBSD.org>
Thu, 1 Aug 2002 13:35:38 +0000 (13:35 +0000)
commita20667249ea3dd50ed661b39d30476958a826d67
tree26f84d226370d3aaa0b90ab4f5e6465a0baf47ba
parent292ee3bd86be278e35b95da5aa6bcb21fe4720f4
If we fail to write to a vnode during a ktrace write, then we drop all
other references to that vnode as a trace vnode in other processes as well
as in any pending requests on the todo list.  Thus, it is possible for a
ktrace request structure to have a NULL ktr_vp when it is destroyed in
ktr_freerequest().  We shouldn't call vrele() on the vnode in that case.

Reported by: bde
sys/kern/kern_exit.c
sys/kern/kern_ktrace.c
sys/kern/kern_shutdown.c
sys/kern/subr_taskqueue.c