2015-09-09 2:49 GMT+09:00 Christoph Lameter <cl@xxxxxxxxx>: > On Mon, 7 Sep 2015, Joonsoo Kim wrote: > >> Sure. It should be fixed soon. If Christoph agree with my approach, I >> will make it to proper formatted patch. > > Could you explain that approach again? Instead of following hunk, - if (size >= kmalloc_size(INDEX_NODE + 1) + if (size >= kmalloc_size(INDEX_NODE) * 2 && Using this hunk. - if (size >= kmalloc_size(INDEX_NODE + 1) + if (!slab_early_init && + size >= kmalloc_size(INDEX_NODE) && + size >= 256 && What this codes intend for is to determine whether this slab can be debugged by debug_pagealloc. It become possible when off slab management is possible so this condition is to check whether off slab management is possible or not. Off slab management requires small sized slab so we should not allow debug_pagealloc until proper sized slab is initialized. Initialization sequence is like: The mapping table in the latest kernel is like: index = {0, 1, 2 , 3, 4, 5, 6, n} size = {0, 96, 192, 8, 16, 32, 64, 2^n} So, when we initialize 96, 192 or 8, proper slab isn't initialized. If we allow debug_pagealloc larger than 256 sized slab, small sized slab would be already initialized so no error happens. I think it is better than kmalloc_size(INDEX_NODE) * 2, because that doesn't guarantee size is larger than 192. Thanks. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>