Re: [PATCH v2] bootmem: avoid freeing to bootmem after bootmem is done

2015-07-27 Thread Mel Gorman
On Mon, Jul 27, 2015 at 11:36:06AM -0400, Chris Metcalf wrote: > Bootmem isn't popular any more, but some architectures still use it, > and freeing to bootmem after calling free_all_bootmem_core() can end > up scribbling over random memory. Instead, make sure the kernel > generates a warning in th

[PATCH v2] bootmem: avoid freeing to bootmem after bootmem is done

2015-07-27 Thread Chris Metcalf
Bootmem isn't popular any more, but some architectures still use it, and freeing to bootmem after calling free_all_bootmem_core() can end up scribbling over random memory. Instead, make sure the kernel generates a warning in this case by ensuring the node_bootmem_map field is non-NULL when are fre