From owner-freebsd-bugs@FreeBSD.ORG Sun Feb 6 22:20:14 2005 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 E836A16A4CF for ; Sun, 6 Feb 2005 22:20:14 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE13943D41 for ; Sun, 6 Feb 2005 22:20:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j16MKEYK043442 for ; Sun, 6 Feb 2005 22:20:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j16MKE94043439; Sun, 6 Feb 2005 22:20:14 GMT (envelope-from gnats) Resent-Date: Sun, 6 Feb 2005 22:20:14 GMT Resent-Message-Id: <200502062220.j16MKE94043439@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, Peter Much Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C031E16A4CE for ; Sun, 6 Feb 2005 22:12:23 +0000 (GMT) Received: from uucp.dinoex.sub.de (uucp.dinoex.sub.de [194.45.71.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A2E143D1D for ; Sun, 6 Feb 2005 22:12:22 +0000 (GMT) (envelope-from admin@citylink.dinoex.sub.org) Received: from uucp.dinoex.sub.de (uucp@uucp.dinoex.sub.de [194.45.71.2] (may be forged)) by uucp.dinoex.sub.de (8.13.3/8.13.3) with ESMTP id j16MCAmV090282 for ; Sun, 6 Feb 2005 23:12:10 +0100 (CET) (envelope-from admin@citylink.dinoex.sub.org) Received: from citylink.dinoex.sub.org (uucp@localhost)j16MCA7b090281 for FreeBSD-gnats-submit@freebsd.org; Sun, 6 Feb 2005 23:12:10 +0100 (CET) (envelope-from admin@citylink.dinoex.sub.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) j16M6jpo008781 for ; Sun, 6 Feb 2005 23:06:45 +0100 (CET) (envelope-from admin@gate.oper.dinoex.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) by gate.oper.dinoex.org (8.13.1/8.13.1) with ESMTP id j16M5urq008001 for ; Sun, 6 Feb 2005 23:05:56 +0100 (CET) (envelope-from admin@gate.oper.dinoex.org) Received: (from admin@localhost) by gate.oper.dinoex.org (8.13.1/8.13.1/Submit) id j16M5tDW007999; Sun, 6 Feb 2005 23:05:55 +0100 (CET) (envelope-from admin) Message-Id: <200502062205.j16M5tDW007999@gate.oper.dinoex.org> Date: Sun, 6 Feb 2005 23:05:55 +0100 (CET) From: Peter Much To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/77181: newfs -g largevalue, mkdir, panic X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Peter Much List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 22:20:15 -0000 >Number: 77181 >Category: kern >Synopsis: newfs -g largevalue, mkdir, panic >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 06 22:20:14 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Peter Much >Release: FreeBSD 5.3-RELEASE-p4 i386 >Organization: n/a >Environment: System: FreeBSD gate.oper.dinoex.org 5.3-RELEASE-p4 FreeBSD 5.3-RELEASE-p4 #4: Sun Jan 30 21:53:17 CET 2005 root@edge.oper.dinoex.org:/usr/src/sys/i386/compile/E1R53V1 i386 >Description: create 5G filesystem on gvinum drive (single drive, no mirror, no stripe). newfs -g 104857600 -U mount it, and mkdir some directories. panic, integer divide fault. >How-To-Repeat: Was quite reproducible. First directoriy within directory crashed it. Here is the dumpfs header: magic 19540119 (UFS2) time Sun Feb 6 22:09:11 2005 superblock location 65536 id [ 42066452 b1313aa3 ] ncg 28 size 2621440 blocks 2538519 bsize 16384 shift 14 mask 0xffffc000 fsize 2048 shift 11 mask 0xfffff800 frag 8 shift 3 fsbtodb 2 minfree 8% optim time symlinklen 120 maxbsize 16384 maxbpg 2048 maxcontig 8 contigsumsize 8 nbfree 317308 ndir 6 nifree 659448 nffree 49 bpg 11761 fpg 94088 ipg 23552 nindir 2048 inopb 64 maxfilesize 140806241583103 sbsize 2048 cgsize 16384 csaddr 3000 cssize 2048 sblkno 40 cblkno 48 iblkno 56 dblkno 3000 cgrotor 15 fmod 0 ronly 0 clean 0 avgfpdir 64 avgfilesize 104857600 flags unclean soft-updates fsmnt /j/conn/var/spool/files volname swuid 0 >Fix: Now I dont use the -g option. Actually I just found it and thought, lets try it out - have not yet researched what it functionally does. And I know that my value is way large and is not in good match with the blocksize. But as this can be harmful in such a way (and not only on performance), we need some plausibility check in newfs. (And now I put kerneldebugger back into my config - btw, there seems no longer anywhere the nice explanations for such options as was in the former LINT file - where one could easily pick what could be eventually needed.) >Release-Note: >Audit-Trail: >Unformatted: