xfs
[Top] [All Lists]

Re: kernelcrash during root filesystem recovery

To: Rajagopal Ananthanarayanan <ananth@xxxxxxx>
Subject: Re: kernelcrash during root filesystem recovery
From: utz lehmann <xfs@xxxxxxxxxx>
Date: Sat, 2 Dec 2000 05:25:24 +0100
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <3A286883.D90E004A@sgi.com>
References: <20001201193703.A1636@s2y4n2c.de> <20516.975707506@ocs3.ocs-net> <20001202040151.A5499@s2y4n2c.de> <3A286883.D90E004A@sgi.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
it works!

i made 2 tests with it: it works.

then i made 3 tests with following procedure:
- cp -av 
- boot the bad kernel. it hangs or crashend.
- boot with the patched kernel. recovery works.


thanks!

utz

Rajagopal Ananthanarayanan [ananth@xxxxxxx] wrote:
> 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.
> --------------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>