Re: [BUGFIX PATCH] perf/probe: Fix to clear tev->nargs in clear_probe_trace_event()

2019-09-20 Thread Arnaldo Carvalho de Melo
Em Mon, Sep 16, 2019 at 01:44:40AM +0900, Masami Hiramatsu escreveu: > Since add_probe_trace_event() can reuse tf->tevs[i] after > calling clear_probe_trace_event(), this can make perf-probe > crash if the 1st attempt of probe event finding fails to find > an event argument, and the 2nd attempt

[BUGFIX PATCH] perf/probe: Fix to clear tev->nargs in clear_probe_trace_event()

2019-09-15 Thread Masami Hiramatsu
Since add_probe_trace_event() can reuse tf->tevs[i] after calling clear_probe_trace_event(), this can make perf-probe crash if the 1st attempt of probe event finding fails to find an event argument, and the 2nd attempt fails to find probe point. E.g. $ perf probe -D "task_pid_nr tsk" Failed