linux/arch/arm64/kernel/probes
Yang Shi 0ec364c0c9 arm64: kprobes: check the return value of set_memory_rox()
Since commit a166563e7e ("arm64: mm: support large block mapping when
rodata=full"), __change_memory_common has more chance to fail due to
memory allocation failure when splitting page table. So check the return
value of set_memory_rox(), then bail out if it fails otherwise we may have
RW memory mapping for kprobes insn page.

Fixes: 195a1b7d83 ("arm64: kprobes: call set_memory_rox() for kprobe page")
Reviewed-by: Ryan Roberts <ryan.roberts@arm.com>
Reviewed-by: Dev Jain <dev.jain@arm.com>
Signed-off-by: Yang Shi <yang@os.amperecomputing.com>
Signed-off-by: Will Deacon <will@kernel.org>
2025-11-07 14:30:22 +00:00
..
decode-insn.c arm64: probes: Break ret out from bl/blr 2025-09-16 20:31:44 +01:00
decode-insn.h arm64: probes: Remove probe_opcode_t 2024-10-15 18:16:20 +01:00
kprobes_trampoline.S arm64: debug: call software breakpoint handlers statically 2025-07-08 13:27:41 +01:00
kprobes.c arm64: kprobes: check the return value of set_memory_rox() 2025-11-07 14:30:22 +00:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
simulate-insn.c arm64: probes: Fix incorrect bl/blr address and register usage 2025-09-18 21:06:59 +01:00
simulate-insn.h arm64: probes: Break ret out from bl/blr 2025-09-16 20:31:44 +01:00
uprobes.c arm64: uprobes: Add GCS support to uretprobes 2025-09-16 21:34:06 +01:00