Re: [RFC PATCH v3 15/26] early kprobes: x86: directly modify code.

2015-02-19 Thread Masami Hiramatsu
(2015/02/13 14:40), Wang Nan wrote: > When registering early kprobes, SMP should has not been enabled, so > doesn't require synchronization in text_poke_bp(). Simply memcpy is > enough. BTW, we've already have text_poke_early for this purpose. Thank you, > > Signed-off-by: Wang Nan > --- > ar

[RFC PATCH v3 15/26] early kprobes: x86: directly modify code.

2015-02-12 Thread Wang Nan
When registering early kprobes, SMP should has not been enabled, so doesn't require synchronization in text_poke_bp(). Simply memcpy is enough. Signed-off-by: Wang Nan --- arch/x86/kernel/kprobes/opt.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/x86/ker