[PATCH 2/2] arm64: mm: don't print out page table entries on EL0 faults

Will Deacon will.deacon at arm.com
Thu Jun 1 05:37:50 PDT 2017


On Wed, May 31, 2017 at 08:38:00PM +0100, Kristina Martsenko wrote:
> On 22/05/17 13:21, Will Deacon wrote:
> > On Mon, May 22, 2017 at 12:45:54PM +0100, Kristina Martsenko wrote:
> >> 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.)
> >>
> >> Signed-off-by: Kristina Martsenko <kristina.martsenko at arm.com>
> > 
> > It might be worth mentioning that this follows the same behaviour as x86.
> 
> Yep.
> 
> > In fact, they print the name of the faulting VMA using print_vma_addr,
> > which might be useful too.
> 
> Looks useful, should I add that in a separate patch in v2?

Sure, works for me.

Will



More information about the linux-arm-kernel mailing list