OSDN Git Service

arm64: mm: report unhandled level-0 translation faults correctly
authorWill Deacon <will.deacon@arm.com>
Fri, 21 Nov 2014 14:22:22 +0000 (14:22 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 21 Nov 2014 14:22:22 +0000 (14:22 +0000)
commit7f73f7aef824b8bc27046edaf6b73bca4b0e7669
treed1d9fe5dce6d67a52432f80dfe65b25b90693021
parent1b907f46db07405b6676addb91b32c546d772fcd
arm64: mm: report unhandled level-0 translation faults correctly

Translation faults that occur due to the input address being outside
of the address range mapped by the relevant base register are reported
as level 0 faults in ESR.DFSC.

If the faulting access cannot be resolved by the kernel (e.g. because
it is not mapped by a vma), then we report "input address range fault"
on the console. This was fine until we added support for 48-bit VAs,
which actually place PGDs at level 0 and can trigger faults for invalid
addresses that are within the range of the page tables.

This patch changes the string to report "level 0 translation fault",
which is far less confusing.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/fault.c