]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/ibt: Clean up is_endbr()
authorPeter Zijlstra <peterz@infradead.org>
Fri, 7 Feb 2025 12:15:31 +0000 (13:15 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 14 Feb 2025 09:32:04 +0000 (10:32 +0100)
commit72e213a7ccf9dc78a85eecee8dc8170762ed876c
treeed7ad0067e7b4fd3209b274dac4fc592d0bc171d
parent92d2da37fdef65f9aeeb54c991df0cec524934ad
x86/ibt: Clean up is_endbr()

Pretty much every caller of is_endbr() actually wants to test something at an
address and ends up doing get_kernel_nofault(). Fold the lot into a more
convenient helper.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: "Masami Hiramatsu (Google)" <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/20250207122546.181367417@infradead.org
arch/x86/events/core.c
arch/x86/include/asm/ftrace.h
arch/x86/include/asm/ibt.h
arch/x86/kernel/alternative.c
arch/x86/kernel/kprobes/core.c
arch/x86/net/bpf_jit_comp.c
kernel/trace/bpf_trace.c