arm64: handle PKEY/POE faults
authorJoey Gouly <joey.gouly@arm.com>
Thu, 22 Aug 2024 15:10:59 +0000 (16:10 +0100)
committerWill Deacon <will@kernel.org>
Wed, 4 Sep 2024 11:53:44 +0000 (12:53 +0100)
commit7f0ab607630790fa09532dca6202683a0dac19b9
tree2117e0c63e4fd9d3bfc3846a67704be76ea86bfd
parent6580a36dd75acbf9c9a6f040d07dc8a9da329ac9
arm64: handle PKEY/POE faults

If a memory fault occurs that is due to an overlay/pkey fault, report that to
userspace with a SEGV_PKUERR.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20240822151113.1479789-17-joey.gouly@arm.com
[will: Add ESR.FSC check to data abort handler]
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/traps.h
arch/arm64/kernel/traps.c
arch/arm64/mm/fault.c