[PATCH] ARM: poison initmem when it is freed

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Jul 6 17:01:06 EDT 2011


On Wed, Jul 06, 2011 at 01:55:54PM -0700, Stephen Boyd wrote:
> Should it include the initrd too? At least x86 poisons that memory but I
> don't know who would be using that incorrectly.

It could do - I don't see any harm in not doing so.  The only issue
is that people may want to disable this stuff if they're after
squeezing every last ms out of the boot time.

> How about a free_init_area() function which calls free_area() after
> poisoning the memory?

I need to go back and look at the Integrator etc situation with regard
to reorganizing the vmlinux layout - it may be that the omission of
freeing .init memory can now be removed (it was there to stop the
memory being used as the first K of memory wasn't DMA-able.)

Assuming it has to stay though, we still should arrange for the initrd
memory to be poisoned even if it isn't freed.



More information about the linux-arm-kernel mailing list