BTW, don't we need the same aligments inside for_each_memblock() loop? How about change kasan_map_populate() to accept regular VA start, end address, and convert them internally after aligning to PAGE_SIZE? Thank you, Pavel On Fri, Oct 13, 2017 at 11:54 AM, Pavel Tatashin <pasha.tatashin@xxxxxxxxxx> wrote: >> Thanks for sharing the .config and tree. It looks like the problem is that >> kimg_shadow_start and kimg_shadow_end are not page-aligned. Whilst I fix >> them up in kasan_map_populate, they remain unaligned when passed to >> kasan_populate_zero_shadow, which confuses the loop termination conditions >> in e.g. zero_pte_populate and the shadow isn't configured properly. > > This makes sense. Thank you. I will insert these changes into your > patch, and send out a new series soon after sanity checking it. > > Pavel -- 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>