Re: [PATCH] powerpc64/kasan: Pass virtual addresses to kasan_init_phys_region()

2024-05-08 Thread Michael Ellerman
On Mon, 12 Feb 2024 15:50:20 +1100, Benjamin Gray wrote: > The kasan_init_phys_region() function maps shadow pages necessary for > the ranges of the linear map backed by physical pages. Currently > kasan_init_phys_region() is being passed physical addresses, but > kasan_mem_to_shadow() expects virt

[PATCH] powerpc64/kasan: Pass virtual addresses to kasan_init_phys_region()

2024-02-11 Thread Benjamin Gray
The kasan_init_phys_region() function maps shadow pages necessary for the ranges of the linear map backed by physical pages. Currently kasan_init_phys_region() is being passed physical addresses, but kasan_mem_to_shadow() expects virtual addresses. It works right now because the lower bits (12:64)