Andrey Ryabinin <ryabinin....@gmail.com> writes: > 2015-08-18 8:42 GMT+03:00 Aneesh Kumar K.V <aneesh.ku...@linux.vnet.ibm.com>: >> Andrey Ryabinin <ryabinin....@gmail.com> writes: >> >> >> But that is introducting conditionals in core code for no real benefit. >> This also will break when we eventually end up tracking vmalloc ? > > Ok, that's a very good reason to not do this. > > I see one potential problem in the way you use kasan_zero_page, though. > memset/memcpy of large portions of memory ( > 8 * PAGE_SIZE) will end up > in overflowing kasan_zero_page when we check shadow in memory_is_poisoned_n() >
Any suggestion on how to fix that ? I guess we definitely don't want to check for addr and size in memset/memcpy. The other option is to do zero page mapping as is done for other architectures. That is we map via page table a zero page. But we still have the issue of memory we need to map the entire vmalloc range (page table memory). I was hoping to avoid all those complexities. -aneesh _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev