Re: [PATCH V2 5/9] x86/alternative: Split text_poke_bp() into tree steps

From: Jiri Kosina
Date: Wed Dec 19 2018 - 03:44:22 EST


On Tue, 18 Dec 2018, Daniel Bristot de Oliveira wrote:

> text_poke_bp() updates instructions on live kernel on SMP in three steps:
> 1) add a int3 trap to the address that will be patched
> 2) update all but the first byte of the patched range
> 3) replace the first byte (int3) by the first byte of
>
> This patch creates one function for each of these steps.
>
> Signed-off-by: Daniel Bristot de Oliveira <bristot@xxxxxxxxxx>
> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Cc: Ingo Molnar <mingo@xxxxxxxxxx>
> Cc: Borislav Petkov <bp@xxxxxxxxx>
> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Cc: Pavel Tatashin <pasha.tatashin@xxxxxxxxxx>
> Cc: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
> Cc: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx>
> Cc: Zhou Chengming <zhouchengming1@xxxxxxxxxx>
> Cc: Jiri Kosina <jkosina@xxxxxxx>

Acked-by: Jiri Kosina <jkosina@xxxxxxx>

--
Jiri Kosina
SUSE Labs