Received: by oss.sgi.com id ; Fri, 1 Dec 2000 19:16:14 -0800 Received: from deliverator.sgi.com ([204.94.214.10]:55873 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 1 Dec 2000 19:15:51 -0800 Received: from madurai.engr.sgi.com (madurai.engr.sgi.com [163.154.5.75]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id TAA15903 for ; Fri, 1 Dec 2000 19:15:50 -0800 (PST) mail_from (ananth@sgi.com) Received: from sgi.com (mango.engr.sgi.com [163.154.5.76]) by madurai.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id TAA44285; Fri, 1 Dec 2000 19:09:06 -0800 (PST) Message-ID: <3A286883.D90E004A@sgi.com> Date: Fri, 01 Dec 2000 19:12:03 -0800 From: Rajagopal Ananthanarayanan X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.16-4SGI_20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: utz lehmann CC: linux-xfs@oss.sgi.com Subject: Re: kernelcrash during root filesystem recovery References: <20001201193703.A1636@s2y4n2c.de> <20516.975707506@ocs3.ocs-net> <20001202040151.A5499@s2y4n2c.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-xfs@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linux-xfs-outgoing utz lehmann wrote: > > ok, here is the backtrace (via serial console): [ ... ] > > Starting XFS recovery on filesystem: ide0(3,6) (dev: 3/6) > kernel BUG at slab.c:1542! > [ ... ] > > what should i do next? First, the immediate BUG() is due to a bogus sized kmalloc being requested. Second, I've been seeing problems here with recovery; so far I thought it was a bug in code that I've been working on. But looking at your backtrace may be something else is broken. Looking through some recent changes, I think a bcopy was accidentally deleted. In file fs/xfs/xfs_log_recover.c, AFTER the kmem_realloc( ... ) at line 1218, can you ADD: bcopy(dp , &ptr[old_len], len); /* s, d, l */ Can you please recompile & retry recovery? Thanks for your efforts in providing debug information! ananth. PS: Daniel, revision 1.195 is where the bcopy was taken out. It appears to be an error. Can you please check? -- -------------------------------------------------------------------------- Rajagopal Ananthanarayanan ("ananth") Member Technical Staff, SGI. --------------------------------------------------------------------------