Commit 04a9f771 authored by Kristina Martšenko's avatar Kristina Martšenko Committed by Catalin Marinas
Browse files

arm64: mm: Handle PAN faults on uaccess CPY* instructions



A subsequent patch will use CPY* instructions to copy between user and
kernel memory. Add handling for PAN faults caused by an intended kernel
memory access erroneously accessing user memory, in order to make it
easier to debug kernel bugs and to keep the same behavior as with
regular loads/stores.

Signed-off-by: default avatarKristina Martšenko <kristina.martsenko@arm.com>
Reviewed-by: default avatarRobin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20250228170006.390100-3-kristina.martsenko@arm.com


[catalin.marinas@arm.com: Folded the extable search into insn_may_access_user()]
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 653884f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment