From owner-cvs-all@FreeBSD.ORG Thu Jan 3 01:27:00 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20B6216A417; Thu, 3 Jan 2008 01:27:00 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id ED66D13C45A; Thu, 3 Jan 2008 01:26:59 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m031QxaR088420; Thu, 3 Jan 2008 01:26:59 GMT (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m031QxBr088419; Thu, 3 Jan 2008 01:26:59 GMT (envelope-from jeff) Message-Id: <200801030126.m031QxBr088419@repoman.freebsd.org> From: Jeff Roberson Date: Thu, 3 Jan 2008 01:26:59 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern kern_descrip.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2008 01:27:00 -0000 jeff 2008-01-03 01:26:59 UTC FreeBSD src repository Modified files: sys/kern kern_descrip.c Log: - In sysctl_kern_file skip fdps with negative lastfiles. This can happen if there are no files open. Accounting for these can eventually return a negative value for olenp causing sysctl to crash with a bad malloc. Reported by: Pawel Worach Revision Changes Path 1.316 +2 -1 src/sys/kern/kern_descrip.c