Re: [PATCH] kprobes: bugfix: force unoptimize when disable kprobes.

2015-01-12 Thread Masami Hiramatsu
(2015/01/05 21:32), Wang Nan wrote: > Original code failed to disarm the probed instruction after > > echo 0 > /sys/kernel/debug/kprobes/enabled > > if OPTPROBE is enabled. > > This is caused by a piece of logically inconsistent code: > > unoptimize_kprobe(p, false); > if (!kprobe_q

[PATCH] kprobes: bugfix: force unoptimize when disable kprobes.

2015-01-05 Thread Wang Nan
Original code failed to disarm the probed instruction after echo 0 > /sys/kernel/debug/kprobes/enabled if OPTPROBE is enabled. This is caused by a piece of logically inconsistent code: unoptimize_kprobe(p, false); if (!kprobe_queued(p)) { ... } unoptimiz