]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: don't print out page table entries on EL0 faults
authorKristina Martsenko <kristina.martsenko@arm.com>
Fri, 9 Jun 2017 15:35:53 +0000 (16:35 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 12 Jun 2017 11:33:37 +0000 (12:33 +0100)
commitb86c8d213837f8256ac77415944a0f561893f003
treec921b42eb6803d2d11e06af6cb3832d443f5f102
parent9d9a35688ab63671514befe0ccad20deea187ecd
arm64: mm: don't print out page table entries on EL0 faults

When we take a fault from EL0 that can't be handled, we print out the
page table entries associated with the faulting address. This allows
userspace to print out any current page table entries, including kernel
(TTBR1) entries. Exposing kernel mappings like this could pose a
security risk, so don't print out page table information on EL0 faults.
(But still print it out for EL1 faults.) This also follows the same
behaviour as x86, printing out page table entries on kernel mode faults
but not user mode faults.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Kristina Martsenko <kristina.martsenko@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/fault.c