]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Fix crash in page table dump with huge pages
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 16 May 2017 10:42:53 +0000 (20:42 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 17 May 2017 01:56:33 +0000 (11:56 +1000)
commit607b2e23aec34a7f95c78df029550cd388fdcc4c
tree9c51d8a21e963362e7705049d2a61acab84d6159
parent6aaff603331bd4ca46ac4bf82ae4a07a2887726a
powerpc/mm: Fix crash in page table dump with huge pages

The page table dump code doesn't know about huge pages, so currently
it crashes (or walks random memory, usually leading to a crash), if it
finds a huge page. On Book3S we only see huge pages in the Linux page
tables when we're using the P9 Radix MMU.

Teaching the code to properly handle huge pages is a bit more involved,
so for now just prevent the crash.

Cc: stable@vger.kernel.org # v4.10+
Fixes: 0796cc493713 ("powerpc/mm: Dump linux pagetables")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/dump_linuxpagetables.c