]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitbfb9956ab4d8242f4594b5f4bee534b935384fd9
tree9c51d8a21e963362e7705049d2a61acab84d6159
parentd04c02f8aa96d82e4cbe783f85a820aae820e746
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: 8eb07b187000 ("powerpc/mm: Dump linux pagetables")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/dump_linuxpagetables.c