diff options
author | Kristina Martšenko <kristina.martsenko@arm.com> | 2025-02-28 20:00:05 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2025-03-07 21:28:29 +0300 |
commit | 04a9f771d81c109b3927d224a797dc21e2774a5e (patch) | |
tree | 85b1eca452d14cde53476164a5decee28120cfdc /lib/test_fortify/write_overflow-memcpy.c | |
parent | 653884f88777b8858ef438cd8ee6ae4722fd5553 (diff) | |
download | linux-04a9f771d81c109b3927d224a797dc21e2774a5e.tar.xz |
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: Kristina Martšenko <kristina.martsenko@arm.com>
Reviewed-by: Robin 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: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions