Re: [PATCH bpf-next 2/2] bpf: Add show_fdinfo for kprobe_multi

From: Alexei Starovoitov
Date: Fri Jun 13 2025 - 13:32:14 EST


On Thu, Jun 12, 2025 at 7:52 PM Tao Chen <chen.dylane@xxxxxxxxx> wrote:
>
> 在 2025/6/13 00:01, Alexei Starovoitov 写道:
> > On Thu, Jun 12, 2025 at 4:56 AM Tao Chen <chen.dylane@xxxxxxxxx> wrote:
> >>
> >> Show kprobe_multi link info with fdinfo, the info as follows:
> >>
> >> link_type: kprobe_multi
> >> link_id: 4
> >> prog_tag: 279dd9c09dfbc757
> >> prog_id: 30
> >> type: kprobe_multi
> >> func_cnt: 8
> >> missed: 0
> >> addr: 0xffffffff81ecb1e0
> >
> > fdinfo shouldn't print kernel addresses.
> > It defeats kaslr
> >
>
> How about print the function name corresponding of the address, or
> don't show the addr info.

Yeah. That would be much better. human readable unlike hex.