kern/61505: little error in fdfree()
Jean Darcoux
bouloumag at hotmail.com
Sat Jan 17 18:50:18 PST 2004
>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 at 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:
More information about the freebsd-bugs
mailing list