linux-stable/arch/powerpc/mm/kasan
Benjamin Gray 295454eda9 powerpc64/kasan: Pass virtual addresses to kasan_init_phys_region()
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) of the
kasan_mem_to_shadow() calculation are the same for the real and virtual
addresses, so the actual PTE value is the same in the end. But virtual
addresses are the intended input, so fix it.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240212045020.70364-1-bgray@linux.ibm.com
2024-05-08 00:28:16 +10:00
..
8xx.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
Makefile powerpc/kasan: Disable KCOV in KASAN code 2023-07-17 22:49:44 +10:00
book3s_32.c powerpc/32s: Fix kasan_init_region() for KASAN 2022-01-16 20:51:05 +11:00
init_32.c powerpc/kasan: Fix addr error caused by page alignment 2024-02-05 22:57:26 +11:00
init_book3e_64.c powerpc64/kasan: Pass virtual addresses to kasan_init_phys_region() 2024-05-08 00:28:16 +10:00
init_book3s_64.c powerpc64/kasan: Pass virtual addresses to kasan_init_phys_region() 2024-05-08 00:28:16 +10:00