Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jan 2004 18:47:36 -0800 (PST)
From:      Jean Darcoux <bouloumag@hotmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/61505: little error in fdfree()
Message-ID:  <200401180247.i0I2lahf037879@www.freebsd.org>
Resent-Message-ID: <200401180250.i0I2oDB0075741@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         61505
>Category:       kern
>Synopsis:       little error in fdfree()
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 17 18:50:13 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jean Darcoux
>Release:        5.2-RELEASE
>Organization:
>Environment:
FreeBSD asterix.local.qc 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Sat Jan 17 00:22:28 EST 2004     root@asterix.local.qc:/usr/obj/usr/src/sys/ASTERIX  i386   
>Description:
There is an off-by-one error in fdfree() related to
flock/fcntl unlock on process exit.
>How-To-Repeat:
      
>Fix:
in  src/sys/kern/kern_descrip.c (line 1445) 

replace
              i < fdp->fd_lastfile;
by
              i <= fdp->fd_lastfile;			
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401180247.i0I2lahf037879>