From owner-freebsd-current@FreeBSD.ORG Fri May 19 08:54:20 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12C8916A43C for ; Fri, 19 May 2006 08:54:20 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id B871643D6E for ; Fri, 19 May 2006 08:54:14 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.3) with ESMTP id k4J8s9TW052229; Fri, 19 May 2006 12:54:09 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.3/Submit) id k4J8s8GE052228; Fri, 19 May 2006 12:54:08 +0400 (MSD) (envelope-from yar) Date: Fri, 19 May 2006 12:54:08 +0400 From: Yar Tikhiy To: Thomas-Martin Seck Message-ID: <20060519085408.GB51604@comp.chem.msu.su> References: <20060518151232.GA37743@comp.chem.msu.su> <200605181819.k4IIJHL7001150@hardy.tmseck.homedns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200605181819.k4IIJHL7001150@hardy.tmseck.homedns.org> User-Agent: Mutt/1.5.9i Cc: freebsd-current@freebsd.org Subject: Re: Root FS corruption X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 May 2006 08:54:20 -0000 On Thu, May 18, 2006 at 08:19:17PM +0200, Thomas-Martin Seck wrote: > * Yar Tikhiy : > > > I saw the following / corruption in a fresh CURRENT when using > > nextboot. Of course, it wasn't the fault of nextboot itself, > > nextboot simply was the only utility to modify / in my case. > > > > I found the contents of nextboot.conf once in my custom /root/supfile, > > the other time in the stock /etc/protocols. /etc/protocols was > > large enough to see how the corruption had happened: the first > > fragment, 2048 bytes, of the file was replaced by the contents of > > nextboot.conf, zero padded. > > > > The / was a usual 2048/16384 UFS2 without soft-updates. The kernel > > was GENERIC. Forced fsck reported no problems at all. The / had > > never been dirty because I used nextboot to boot single-user with > > all FSen read-only and investigate a panic unrelated to FS. > > > > Did any one see a similar problem of fragment mis-allocation? > > I experienced the exact same corruption some months ago with a RELENG_6 > test system I update regularly. Unfortunately, this corruption happened > only once, I was never able to reproduce it since. > > The kernel is a stripped down GENERIC, /root is a 2048/16384 UFS2 fs. Thank you for your reply! Apropos, today /boot/kernel/ng_fec.ko fell a victim to the corruption in exactly the same way: its first fragment was replaced by the nextboot.conf contents. The system was updated last time on the day before yesterday. Of course, more / corruption is likely. The case of nextboot.conf is just detectable easily. Thank Daemon, it's a test machine and not a production server. I'm still trying to find a pattern in the corruption. -- Yar