xfs
[Top] [All Lists]

NULL dereference on mount

To: linux-xfs@xxxxxxxxxxx
Subject: NULL dereference on mount
From: Daniel Moore <dxm@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 20 Apr 2000 15:19:52 +1000
Sender: owner-linux-xfs@xxxxxxxxxxx
I've just been trying to track down a problem I've started
experiencing recently. I've finally worked out whats going on,
and I think it's a known problem, but here's the symptoms just 
in-case anyone gets tripped up by it.

I should say that I've turned off my swap space because I needed
the partition so I could make a bigger xfs partition. That's probably
part of the problem.

On remounting (a clean) FS, system panics thru NULL pointer dereference
in xlog_bread or occasionally other places in xfs_log_recover.c

To cut a long story short, kmalloc fails a large allocation in
pagebuf (pagebuf_get_no_daddr and maybe others) and returns NULL.
xlog_get_bp returns NULL. xfs_bread coughs up a lung.

I think the reason I'm tripping it is because I'm getting large
meta data writes in the log (130k) and the whole block is being
allocated during the search for the ends of the log.

Anyway, there it is. Anyone have any thoughts?

-----------------------------------------------------
 Daniel Moore                  dxm@xxxxxxx
 R&D Software Engineer         Phone: +61-3-98348209
 SGI Performance Tools Group   Fax:   +61-3-98132378
-----------------------------------------------------


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