From owner-freebsd-fs Wed Apr 4 5:42:59 2001 Delivered-To: freebsd-fs@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 3AD2637B719 for ; Wed, 4 Apr 2001 05:42:55 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id WAA01426; Wed, 4 Apr 2001 22:42:41 +1000 Date: Wed, 4 Apr 2001 22:41:27 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: "Matthew H. North" Cc: freebsd-fs@FreeBSD.ORG Subject: Re: Reproducible kernel panics in ffs_valloc: dup_alloc In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 3 Apr 2001, Matthew H. North wrote: > After spending hours trouble-shooting this and looking for similar problems > and solutions in the bug archive, google, etc., I'm running out of ideas. > > I am responsible for maintaining a squid cache system for my company. > Currently, the system is: PIII/800MHz, 768MB RAM (1GB cache), FreeBSD > 4.2-STABLE, Squid-2.3STABLE4 (compiled locally instead of using the FreeBSD > port). Boot drive and Squid cache drives are SCSI-LVD running at 80MB/s off > of the Adaptec 29160N card. Softupdates are not enabled on *any* of the > drives in this system. > > Unfortunately this system has been plagued by kernel panics for a number of > weeks now. I originally assumed there was some sort of hardware problem, > but I've since replaced every last piece of hardware: MB, RAM, CPU, SCSI > card, SCSI cable, SCSI drives, video card, NICs. Every last piece of > hardware has been replaced, yet the kernel panics persists on a fairly > regular basis. I wonder if the longstanding bugs in vfs_bio_clrbuf() could cause this problem (rev.1.188 of vfs_bio.c fixed only some of the bugs). Quick fix: Index: vfs_bio.c =================================================================== RCS file: /home/ncvs/src/sys/kern/vfs_bio.c,v retrieving revision 1.273 diff -u -2 -r1.273 vfs_bio.c --- vfs_bio.c 2001/02/28 04:13:07 1.273 +++ vfs_bio.c 2001/04/04 12:35:26 @@ -3088,5 +3088,5 @@ int i, mask = 0; caddr_t sa, ea; - if ((bp->b_flags & (B_VMIO | B_MALLOC)) == B_VMIO) { + if (0 || (bp->b_flags & (B_VMIO | B_MALLOC)) == B_VMIO) { bp->b_flags &= ~B_INVAL; bp->b_ioflags &= ~BIO_ERROR; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message