]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
arm64: mm: print out correct page table entries
authorKristina Martsenko <kristina.martsenko@arm.com>
Fri, 9 Jun 2017 15:35:52 +0000 (16:35 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 12 Jun 2017 11:33:37 +0000 (12:33 +0100)
commit67ce16ec15ce9d97d3d85e72beabbc5d7017193e
treedd3cf3e920252ef1f036565c690b8089f597587d
parente71a4e1bebaf7fd990efbdc04b38e5526914f0f1
arm64: mm: print out correct page table entries

When we take a fault that can't be handled, we print out the page table
entries associated with the faulting address. In some cases we currently
print out the wrong entries. For a faulting TTBR1 address, we sometimes
print out TTBR0 table entries instead, and for a faulting TTBR0 address
we sometimes print out TTBR1 table entries. Fix this by choosing the
tables based on the faulting address.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Kristina Martsenko <kristina.martsenko@arm.com>
[will: zero-extend addrs to 64-bit, don't walk swapper w/ TTBR0 addr]
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/system_misc.h
arch/arm64/mm/fault.c