Re: i386 memory corrupted by free_initmem()

Martin Mares (mj@atrey.karlin.mff.cuni.cz)
Fri, 16 May 1997 18:03:47 +0200


Hi,

> In recent kernels I noticed some strange memory corruption.
> This turns out to be caused by free_initmem() in
> arch/i386/mm/init.c. (It frees too much.)
> The easiest fix is to comment out this entire routine.
> I was too lazy too think about what the proper rounding is
> in case the routine is not commented out.

I've looked at it and all addresses seem to be calculated properly. Can
you send me your configuration, version of binutils and an output of
"objdump --all vmlinux"? I would also appreciate a more detailed description
of the crash.

Thanks
Martin