arm64/mm: Identify user instruction aborts
authorAnshuman Khandual <anshuman.khandual@arm.com>
Sun, 5 May 2019 04:15:12 +0000 (09:45 +0530)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 4 Jun 2019 13:55:15 +0000 (14:55 +0100)
commit01de1776f62e6437ccd207181ec503e8a56e6128
treee3e34df65141f255c243d9673a17bb1bf10d906e
parent87dedf7c61ab07d7fe53bcf93103d2d845d804d8
arm64/mm: Identify user instruction aborts

We don't currently set the FAULT_FLAG_INSTRUCTION mm flag for EL0
instruction aborts. This has no functional impact, as we don't override
arch_vma_access_permitted(), and the default implementation always returns
true. However, it would be helpful to provide the flag so that it can be
consumed by tracepoints such as dax_pmd_fault.

This patch sets the FAULT_FLAG_INSTRUCTION flag for EL0 instruction aborts.

Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/fault.c