On Fri, 15 Feb 2019 13:47:16 +0100
Daniel Bristot de Oliveira wrote:
> On 2/8/19 1:15 AM, Steven Rostedt wrote:
> > On Mon, 4 Feb 2019 20:58:58 +0100
> > Daniel Bristot de Oliveira wrote:
> >
> >>
> >> +static void text_poke_bp_set_handler(void *addr, void *handler,
> >> +
On 2/8/19 1:15 AM, Steven Rostedt wrote:
> On Mon, 4 Feb 2019 20:58:58 +0100
> Daniel Bristot de Oliveira wrote:
>
>>
>> +static void text_poke_bp_set_handler(void *addr, void *handler,
>> + unsigned char int3)
>> +{
>> +bp_int3_handler = handler;
>> +bp
On Mon, 4 Feb 2019 20:58:58 +0100
Daniel Bristot de Oliveira wrote:
>
> +static void text_poke_bp_set_handler(void *addr, void *handler,
> + unsigned char int3)
> +{
> + bp_int3_handler = handler;
> + bp_int3_addr = (u8 *)addr + sizeof(int3);
> + te
On Mon, 4 Feb 2019 20:58:58 +0100
Daniel Bristot de Oliveira wrote:
> diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
> index d458c7973c56..202af29c43c0 100644
> --- a/arch/x86/kernel/alternative.c
> +++ b/arch/x86/kernel/alternative.c
> @@ -767,6 +767,29 @@ int poke_i
On Mon, Feb 04, 2019 at 08:58:58PM +0100, 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 (in
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.
6 matches
Mail list logo