Skip to content

Commit bf396c0

Browse files
kristina-martsenkowildea01
authored andcommitted
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>
1 parent 67ce16e commit bf396c0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/arm64/mm/fault.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ static void __do_user_fault(struct task_struct *tsk, unsigned long addr,
264264
pr_info("%s[%d]: unhandled %s (%d) at 0x%08lx, esr 0x%03x\n",
265265
tsk->comm, task_pid_nr(tsk), inf->name, sig,
266266
addr, esr);
267-
show_pte(addr);
268267
__show_regs(regs);
269268
}
270269

0 commit comments

Comments
 (0)