Re: [PATCH v4 3/3] x86/kasan: support KASAN_VMALLOC

2019-08-16 Thread Christophe Leroy
Le 15/08/2019 à 02:16, Daniel Axtens a écrit : In the case where KASAN directly allocates memory to back vmalloc space, don't map the early shadow page over it. If early shadow page is not mapped, any bad memory access will Oops on the shadow access instead of Oopsing on the real bad access

[PATCH v4 3/3] x86/kasan: support KASAN_VMALLOC

2019-08-14 Thread Daniel Axtens
In the case where KASAN directly allocates memory to back vmalloc space, don't map the early shadow page over it. We prepopulate pgds/p4ds for the range that would otherwise be empty. This is required to get it synced to hardware on boot, allowing the lower levels of the page tables to be filled d