x86/alternatives: Teach text_poke_bp() to emulate RET
authorPeter Zijlstra <peterz@infradead.org>
Tue, 18 Aug 2020 13:57:47 +0000 (15:57 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Sep 2020 07:58:05 +0000 (09:58 +0200)
commitc43a43e439e00ad2a4d98716895d961ade6bbbfc
treef0432ac71a822b7167a53d524b1a8f09e754f60d
parentf03c412915f5f69f2d17bcd20ecdd69320bcbf7b
x86/alternatives: Teach text_poke_bp() to emulate RET

Future patches will need to poke a RET instruction, provide the
infrastructure required for this.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/20200818135804.982214828@infradead.org
arch/x86/include/asm/text-patching.h
arch/x86/kernel/alternative.c