Searched hist:cc66bb91457827f62e2b6cb2518666820f0a6c48 (Results 1 – 1 of 1) sorted by relevance
/linux/include/linux/ |
H A D | kprobes.h | diff cc66bb91457827f62e2b6cb2518666820f0a6c48 Tue Mar 08 16:30:32 CET 2022 Peter Zijlstra <peterz@infradead.org> x86/ibt,kprobes: Cure sym+0 equals fentry woes
In order to allow kprobes to skip the ENDBR instructions at sym+0 for X86_KERNEL_IBT builds, change _kprobe_addr() to take an architecture callback to inspect the function at hand and modify the offset if needed.
This streamlines the existing interface to cover more cases and require less hooks. Once PowerPC gets fully converted there will only be the one arch hook.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20220308154318.405947704@infradead.org
|