Re: [PATCH] kprobes/x86: Use the current code when modified by Kprobes using ftrace

2015-02-02 Thread Petr Mladek
On Mon 2015-02-02 15:57:20, Petr Mladek wrote: > On Mon 2015-02-02 17:40:10, Masami Hiramatsu wrote: > > (2015/01/31 0:45), Petr Mladek wrote: > > > can_probe() checks if the given address points to the beginning of > > > an instruction. It analyzes all the instructions from the beginning > > > of

Re: [PATCH] kprobes/x86: Use the current code when modified by Kprobes using ftrace

2015-02-02 Thread Petr Mladek
On Mon 2015-02-02 17:40:10, Masami Hiramatsu wrote: > (2015/01/31 0:45), Petr Mladek wrote: > > can_probe() checks if the given address points to the beginning of > > an instruction. It analyzes all the instructions from the beginning > > of the function until the given address. The code might be

Re: [PATCH] kprobes/x86: Use the current code when modified by Kprobes using ftrace

2015-02-02 Thread Masami Hiramatsu
(2015/01/31 0:45), Petr Mladek wrote: > can_probe() checks if the given address points to the beginning of > an instruction. It analyzes all the instructions from the beginning > of the function until the given address. The code might be modified > by another Kprobe. In this case, the current code

Re: [PATCH] kprobes/x86: Use the current code when modified by Kprobes using ftrace

2015-02-02 Thread Petr Mladek
On Mon 2015-02-02 17:40:10, Masami Hiramatsu wrote: (2015/01/31 0:45), Petr Mladek wrote: can_probe() checks if the given address points to the beginning of an instruction. It analyzes all the instructions from the beginning of the function until the given address. The code might be

Re: [PATCH] kprobes/x86: Use the current code when modified by Kprobes using ftrace

2015-02-02 Thread Petr Mladek
On Mon 2015-02-02 15:57:20, Petr Mladek wrote: On Mon 2015-02-02 17:40:10, Masami Hiramatsu wrote: (2015/01/31 0:45), Petr Mladek wrote: can_probe() checks if the given address points to the beginning of an instruction. It analyzes all the instructions from the beginning of the

Re: [PATCH] kprobes/x86: Use the current code when modified by Kprobes using ftrace

2015-02-02 Thread Masami Hiramatsu
(2015/01/31 0:45), Petr Mladek wrote: can_probe() checks if the given address points to the beginning of an instruction. It analyzes all the instructions from the beginning of the function until the given address. The code might be modified by another Kprobe. In this case, the current code is

[PATCH] kprobes/x86: Use the current code when modified by Kprobes using ftrace

2015-01-30 Thread Petr Mladek
can_probe() checks if the given address points to the beginning of an instruction. It analyzes all the instructions from the beginning of the function until the given address. The code might be modified by another Kprobe. In this case, the current code is read into a buffer, int3 breakpoint is

[PATCH] kprobes/x86: Use the current code when modified by Kprobes using ftrace

2015-01-30 Thread Petr Mladek
can_probe() checks if the given address points to the beginning of an instruction. It analyzes all the instructions from the beginning of the function until the given address. The code might be modified by another Kprobe. In this case, the current code is read into a buffer, int3 breakpoint is