Subject: CVS commit: [netbsd-2-0] src/sys/kern
To: None <source-changes@NetBSD.org>
From: Jeff Rizzo <riz@netbsd.org>
List: source-changes
Date: 05/24/2005 19:38:34
Module Name: src
Committed By: riz
Date: Tue May 24 19:38:34 UTC 2005
Modified Files:
src/sys/kern [netbsd-2-0]: kern_descrip.c
Log Message:
Pull up revision 1.132 (requested by wrstuden in ticket #1537):
The file being closed is (fdp->fd_lastfile - i), not i. So compare
(fdp->fd_lastfile - i) against fd_knlistsize. Otherwise we can
call knote_fdclose() on a file descriptor that doesn't have a knote.
This issue explains random panics I have had on process exit over the
past few years.
To generate a diff of this commit:
cvs rdiff -r1.123.2.2 -r1.123.2.3 src/sys/kern/kern_descrip.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.