Re: [PATCH] tracing/probe: Fix bpf_task_fd_query() for kprobes and uprobes

From: Alexei Starovoitov
Date: Tue Jun 09 2020 - 14:19:17 EST


On Tue, Jun 9, 2020 at 12:12 AM Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote:
>
> On Mon, 8 Jun 2020 14:45:32 +0200
> Jean-Philippe Brucker <jean-philippe@xxxxxxxxxx> wrote:
>
> > Commit 60d53e2c3b75 ("tracing/probe: Split trace_event related data from
> > trace_probe") removed the trace_[ku]probe structure from the
> > trace_event_call->data pointer. As bpf_get_[ku]probe_info() were
> > forgotten in that change, fix them now. These functions are currently
> > only used by the bpf_task_fd_query() syscall handler to collect
> > information about a perf event.
> >
>
> Oops, good catch!
>
> Acked-by: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
>
>
> > Fixes: 60d53e2c3b75 ("tracing/probe: Split trace_event related data from trace_probe")
> > Signed-off-by: Jean-Philippe Brucker <jean-philippe@xxxxxxxxxx>
>
> Cc: stable@xxxxxxxxxxxxxxx

Applied to bpf tree. Thanks