Re: ramdisk corruption problems - was: RE: pivot_root and initrd kern el panic woes

From: Stephen C. Tweedie (
Date: Fri Jan 04 2002 - 11:38:34 EST


[catching up from holidays]

On Sat, Dec 29, 2001 at 10:19:52PM -0800, Andrew Morton wrote:
> It appeared in 2.4.2-ac25, and it looks like sct was the author:
> o Fix higmem block_prepare_write crash (Stephen Tweedie)
> Which is interesting - from the changelog it looks like he was
> fixing a different problem! I always though that code was there
> to prevent leakage of stale blocks. Stephen?

The code I fixed was the

- memset(bh->b_data, 0, bh->b_size);
+ memset(kaddr+block_start, 0, bh->b_size);

chunk to prevent the block_prepare_write out: error path from oopsing
on highmem pages -- that's unrelated to the problem at hand here.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jan 07 2002 - 21:00:25 EST