Subject: Re: kern/28929
To: None <cube@netbsd.org, kern-bug-people@netbsd.org,>
From: None <tron@netbsd.org>
List: netbsd-bugs
Date: 01/13/2005 20:48:44
Synopsis: fcntl F_CLOSEM can hang entire system

Responsible-Changed-From-To: kern-bug-people->cube
Responsible-Changed-By: tron@netbsd.org
Responsible-Changed-When: Thu, 13 Jan 2005 20:48:43 +0000
Responsible-Changed-Why:
Quentin Garnier committed the fix for the bug reported in this PR.


State-Changed-From-To: closed->open
State-Changed-By: tron@netbsd.org
State-Changed-When: Thu, 13 Jan 2005 20:48:43 +0000
State-Changed-Why:
Revision 1.128 of "src/sys/kern/kern_descrip.c" causes reproducable
kernel panics on my system:

panic: fd_unused: fd_lastfile inconsistent

This should be this ASSERT() in "kern_descrip.c":

#ifdef DIAGNOSTIC
        if (fd > fdp->fd_lastfile)
                panic("fd_unused: fd_lastfile inconsistent");
#endif