Re: [v5 11/15] arm64/kasan: explicitly zero kasan shadow memory

2017-08-04 Thread Pasha Tatashin
Hi Ard, Thank you very much for reviewing this. I will fix the bug you found in the next iteration. +zero_vemmap_populated_memory(void) Typo here: vemmap -> vmemmap Yeap, will rename here, and in Intel variant. +{ + struct memblock_region *reg; + u64 start, end; + + fo

Re: [v5 11/15] arm64/kasan: explicitly zero kasan shadow memory

2017-08-03 Thread Ard Biesheuvel
(+ arm64 maintainers) Hi Pavel, On 3 August 2017 at 22:23, Pavel Tatashin wrote: > To optimize the performance of struct page initialization, > vmemmap_populate() will no longer zero memory. > > We must explicitly zero the memory that is allocated by vmemmap_populate() > for kasan, as this memor

[v5 11/15] arm64/kasan: explicitly zero kasan shadow memory

2017-08-03 Thread Pavel Tatashin
To optimize the performance of struct page initialization, vmemmap_populate() will no longer zero memory. We must explicitly zero the memory that is allocated by vmemmap_populate() for kasan, as this memory does not go through struct page initialization path. Signed-off-by: Pavel Tatashin Review