The patch titled mm: make free_bootmem to loop bdata_list has been added to the -mm tree. Its filename is mm-fix-boundary-checking-in-free_bootmem_core-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: mm: make free_bootmem to loop bdata_list From: "Yinghai Lu" <yhlu.kernel@xxxxxxxxx> make the free_bootmem_core could handle out of range case. we could use bdata_list to make sure the range can be freed for sure. so next time, we don't need to loop online nodes and could use free_bootmem directly. Signed-off-by: Yinghai Lu <yhlu.kernel@xxxxxxxxx> Cc: Andi Kleen <ak@xxxxxxx> Cc: Yasunori Goto <y-goto@xxxxxxxxxxxxxx> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Christoph Lameter <clameter@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/bootmem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -puN mm/bootmem.c~mm-fix-boundary-checking-in-free_bootmem_core-fix mm/bootmem.c --- a/mm/bootmem.c~mm-fix-boundary-checking-in-free_bootmem_core-fix +++ a/mm/bootmem.c @@ -432,7 +432,9 @@ int __init reserve_bootmem(unsigned long void __init free_bootmem(unsigned long addr, unsigned long size) { - free_bootmem_core(NODE_DATA(0)->bdata, addr, size); + bootmem_data_t *bdata; + list_for_each_entry(bdata, &bdata_list, list) + free_bootmem_core(bdata, addr, size); } unsigned long __init free_all_bootmem(void) _ Patches currently in -mm which might be from yhlu.kernel@xxxxxxxxx are mm-fix-boundary-checking-in-free_bootmem_core.patch mm-fix-boundary-checking-in-free_bootmem_core-fix.patch git-x86.patch mm-make-mem_map-allocation-continuous.patch mm-make-mem_map-allocation-continuous-checkpatch-fixes.patch mm-fix-alloc_bootmem_core-to-use-fast-searching-for-all-nodes.patch mm-allocate-section_map-for-sparse_init.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html