linux/arch/x86/kernel/kprobes
Mike Rapoport (Microsoft) 36de1e4238 x86/kprobes: enable EXECMEM_ROX_CACHE for kprobes allocations
x86::alloc_insn_page() always allocates ROX memory.

Instead of overriding this method, add EXECMEM_KPROBES entry in
execmem_info with pgprot set to PAGE_KERNEL_ROX and use ROX cache when
configuration and CPU features allow it.

Link: https://lkml.kernel.org/r/20250713071730.4117334-8-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Cc: Daniel Gomez <da.gomez@samsung.com>
Cc: Petr Pavlu <petr.pavlu@suse.com>
Cc: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-08-02 12:06:12 -07:00
..
common.h x86/kprobes: Refactor can_{probe,boost} return type to bool 2024-03-07 00:26:01 +09:00
core.c x86/kprobes: enable EXECMEM_ROX_CACHE for kprobes allocations 2025-08-02 12:06:12 -07:00
ftrace.c x86/kprobes: Cleanup kprobes on ftrace code 2024-11-07 01:16:59 +09:00
Makefile
opt.c x86/alternatives: Rename 'text_poke_sync()' to 'smp_text_poke_sync_each_cpu()' 2025-04-11 11:01:34 +02:00