]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/32s: Fix kasan_early_hash_table() for CONFIG_VMAP_STACK
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 29 Jan 2020 12:34:36 +0000 (12:34 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 30 Jan 2020 12:47:09 +0000 (23:47 +1100)
commitcae37090471be0335be236ca9fd89e7f481dd24f
tree9cd2e9dfb142e496abbc52f5643316ccff1d748a
parentc9a3597d8d27e24941f47f10a8ee9100d4a0a981
powerpc/32s: Fix kasan_early_hash_table() for CONFIG_VMAP_STACK

On book3s/32 CPUs that are handling MMU through a hash table,
MMU_init_hw() function was adapted for VMAP_STACK in order to
handle virtual addresses instead of physical addresses in the
low level hash functions.

When using KASAN, the same adaptations are required for the
early hash table set up by kasan_early_hash_table() function.

Fixes: fb79cc74f0dd ("powerpc/32s: Enable CONFIG_VMAP_STACK")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/fc8390a33c2a470105f01abbcbdc7916c30c0a54.1580301269.git.christophe.leroy@c-s.fr
arch/powerpc/mm/kasan/kasan_init_32.c