x86/alternatives: Introduce int3_emulate_jcc()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 23 Jan 2023 20:59:16 +0000 (21:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Feb 2023 10:25:41 +0000 (11:25 +0100)
commit75c066485bcb0613b5db72bbfe863ff3d1921bc4
treec98ad4c7d4b080e40529983ae3ecc6a36059642e
parent684db631a15779c8f3b2235d507efdfe6bb10278
x86/alternatives: Introduce int3_emulate_jcc()

commit db7adcfd1cec4e95155e37bc066fddab302c6340 upstream.

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
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/text-patching.h
arch/x86/kernel/kprobes/core.c