Re: [PATCH] fs-writeback: fix NULL pointer dereference in, __mark_inode_dirty

From: Torsten Hilbrich
Date: Thu Mar 10 2011 - 05:40:33 EST


I ran into the same problem and successfully applied your fix.

I was able to reproduce this panic and bisected it to the following commit:

commit aaead25b954879e1a708ff2f3602f494c18d20b5
Author: Christoph Hellwig <hch@xxxxxx>
Date: Mon Oct 4 14:25:33 2010 +0200

writeback: always use sb->s_bdi for writeback purposes

The steps to reproduce it on my test system (T60p with Intel Core Duo) were.

- /dev/sdb is an USB stick with partition sdb1 formatted as ext2
- mount /dev/sdb1 /mnt
- cat > /mnt/foo
- now press return some times
- remove stick
- press return, panic takes place

Hope this helps fixing the problem,

Torsten
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/