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

Michael Ellerman patch-notifications at ellerman.id.au
Wed May 8 23:39:45 AEST 2024


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 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.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc64/kasan: Pass virtual addresses to kasan_init_phys_region()
      https://git.kernel.org/powerpc/c/295454eda97b9c5f7a64ac5c2bb827fd15efb623

cheers


More information about the Linuxppc-dev mailing list