]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ptdump: Fix addresses display on PPC32
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 14 Aug 2019 12:36:09 +0000 (12:36 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 20 Aug 2019 11:22:08 +0000 (21:22 +1000)
commit20fd0d7946610a600e67a111b1d467363980964f
tree76270ca5f1c3cb258e67ba774872270cd3a7463c
parent1a2471ad6c2322a6031731d4da4e4176b93dc238
powerpc/ptdump: Fix addresses display on PPC32

Commit 8154a819da7a ("powerpc/mm: Warn if W+X pages found on boot")
wrongly changed KERN_VIRT_START from 0 to PAGE_OFFSET, leading to a
shift in the displayed addresses.

Lets revert that change to resync walk_pagetables()'s addr val and
pgd_t pointer for PPC32.

Fixes: 8154a819da7a ("powerpc/mm: Warn if W+X pages found on boot")
Cc: stable@vger.kernel.org # v5.2+
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/eb4d626514e22f85814830012642329018ef6af9.1565786091.git.christophe.leroy@c-s.fr
arch/powerpc/mm/ptdump/ptdump.c