From owner-freebsd-bugs@FreeBSD.ORG Tue Jun 15 18:10:44 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC3BF16A4CE for ; Tue, 15 Jun 2004 18:10:44 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8ACC443D45 for ; Tue, 15 Jun 2004 18:10:44 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i5FIAGCh018487 for ; Tue, 15 Jun 2004 18:10:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5FIAG8G018483; Tue, 15 Jun 2004 18:10:16 GMT (envelope-from gnats) Resent-Date: Tue, 15 Jun 2004 18:10:16 GMT Resent-Message-Id: <200406151810.i5FIAG8G018483@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Klaus Steden Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E7B816A4CE for ; Tue, 15 Jun 2004 18:05:41 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 497B543D5E for ; Tue, 15 Jun 2004 18:05:41 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i5FI4p5o015760 for ; Tue, 15 Jun 2004 18:04:51 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i5FI4paE015759; Tue, 15 Jun 2004 18:04:51 GMT (envelope-from nobody) Message-Id: <200406151804.i5FI4paE015759@www.freebsd.org> Date: Tue, 15 Jun 2004 18:04:51 GMT From: Klaus Steden To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: bin/67982: integer overflow in statfs structure X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2004 18:10:44 -0000 >Number: 67982 >Category: bin >Synopsis: integer overflow in statfs structure >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: Tue Jun 15 18:10:16 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Klaus Steden >Release: 4.9-STABLE >Organization: >Environment: FreeBSD kubrick.compt.com 4.9-STABLE FreeBSD 4.9-STABLE #0: Tue Nov 25 18:16:15 EST 2003 klaus@kubrick.compt.com:/usr/obj/usr/src/sys/Manhattan i386 >Description: One of my NFS-mounted volumes is quite large (about 1.1 TB, or 2291609600 blocks to be precise); df incorrectly reports the size as a negative value: @kubrick:~[285]$ df -h /helios Filesystem Size Used Avail Capacity Mounted on atlas:/helios -955.3G 840G 252G -88% /helios I compiled df from source with debugging symbols and ran it through gdb, and it appears that the f_blocks member in the statfs structure used by statfs() is simply not big enough to hold the value returned. >How-To-Repeat: Can be repeated by using df, and presumably also by any program that uses a statfs structure on a large filesystem. >Fix: Increase the size of the f_blocks parameter (and possibly others) to something larger. >Release-Note: >Audit-Trail: >Unformatted: