From owner-freebsd-bugs Mon Oct 16 10:30: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 45FED37B670 for ; Mon, 16 Oct 2000 10:30:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA54038; Mon, 16 Oct 2000 10:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id E2B6137B66E; Mon, 16 Oct 2000 10:26:28 -0700 (PDT) Message-Id: <20001016172628.E2B6137B66E@hub.freebsd.org> Date: Mon, 16 Oct 2000 10:26:28 -0700 (PDT) From: weiss@uni-mainz.de To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/22029: use of softdependencies leads to major filesystem inconsistencies Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22029 >Category: kern >Synopsis: use of softdependencies leads to major filesystem inconsistencies >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 16 10:30:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Juergen Weiss >Release: FreeBSD 4.1.1-RELEASE >Organization: Uni Mainz >Environment: FreeBSD netmon05.zdv.uni-mainz.de 4.1.1-RELEASE FreeBSD 4.1.1-RELEASE #0: Tue Sep 26 00:46:59 GMT 2000 jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC i386 >Description: After I enabled soft dependencies on a filesystem a stress test leads repeatedly to major filesystem inconsistencies, which result in kernel panics: `ffs_valloc: dup alloc' An fsck run afterwards reveals `allocated frag marked free' messages (about 20 or so). Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.1.1-RELEASE #0: Tue Sep 26 00:46:59 GMT 2000 jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (701.59-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x683 Stepping = 3 Features=0x383fbff real memory = 536858624 (524276K bytes) avail memory = 518610944 (506456K bytes) Preloaded elf kernel "kernel" at 0xc0416000. Pentium Pro MTRR support enabled md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0xb800-0xb80f at device 4.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xb400-0xb41f at device 4.2 on pci0 uhci0: Invalid irq 255 uhci0: Please switch on USB support and switch PNP-OS to 'No' in BIOS device_probe_and_attach: uhci0 attach returned 6 chip1: port 0xe800-0xe80f at device 4.3 on pci0 pci0: (vendor=0x1385, dev=0x620a) at 9.0 irq 12 de0: port 0xb000-0xb07f mem 0xe1000000-0xe100007f irq 10 at device 11.0 on pci0 de0: 21140A [10-100Mb/s] pass 2.2 de0: address 00:80:c8:f6:43:ea fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ad0: 29314MB [59560/16/63] at ata0-master using UDMA33 acd0: CDROM at ata1-master using PIO4 Mounting root from ufs:/dev/ad0s1a >How-To-Repeat: Enable soft dependencies on a file system, disable fsck in /etc/fstab and enable the force mount option for that file system. File system is named <> in the following: mkdir <>/newsrc <>/newsrc/xxx cp -R /usr/src <>/newsrc & cp -R /usr/src <>/newsrc/xxx & sleep 20; rm -rf <>/newsrc/src wait 10 seconds and press the reset button. Doing this at most twice gives you an inconsistent file system and a kernel panic during the third run. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message