Subject: lib/17581: kvm_deadprocs() fails to handle the 'deadproc' list correctly
To: None <email@example.com>
From: None <firstname.lastname@example.org>
Date: 07/12/2002 15:52:23
>Synopsis: kvm_deadprocs() fails to handle the 'deadproc' list correctly
>Arrival-Date: Fri Jul 12 07:51:00 PDT 2002
>Originator: David Laight
>Release: NetBSD 1.6B
System: NetBSD snowdrop 1.6B NetBSD 1.6B (GENERIC) #18: Wed Jul 10 14:41:14 BST 2002
In order to find all the processes in a system dump, kvm_deadproc
traverses the 'allproc', 'deadproc' and 'zombproc' lists.
However the current kernel links 'deadproc' through the
p_hash field - such processes are actually on 'zombproc' as well.
So traversing 'deadproc' is unnecessary as well as being wrong.
Note that the code has always failed to return anything found
on 'deadproc' because dcnt isn't allowed for during the read
of the 'zombproc' list, nor is it included in the returned
Remove the effect of delta 1.27 of libkvm/kvm_proc.c