]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f35a55a06188c3c8c0d049bc8dc90ee24440669
treec98ad4c7d4b080e40529983ae3ecc6a36059642e
parentfd71fbef8c761e03394a547819a0cf2c185d2d7c
x86/alternatives: Introduce int3_emulate_jcc()

commit a6bfb99c5b2ae560a6a88fbf169b36540c1cb44c 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