x86/alternatives: Introduce int3_emulate_jcc()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 23 Jan 2023 20:59:16 +0000 (21:59 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 31 Jan 2023 14:05:30 +0000 (15:05 +0100)
commitdb7adcfd1cec4e95155e37bc066fddab302c6340
treec586c329f92d83b68f623f603fc5aaf934a90b35
parent5d1dd961e74334a2178264193ea813d44ce5e725
x86/alternatives: Introduce int3_emulate_jcc()

Move the kprobe Jcc emulation into int3_emulate_jcc() so it can be
used by more code -- specifically static_call() will need this.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/20230123210607.057678245@infradead.org
arch/x86/include/asm/text-patching.h
arch/x86/kernel/kprobes/core.c