RE: [PATCH v2] bpftool: fix potential NULL pointer dereferencing in prog_dump()

From: John Fastabend
Date: Thu Nov 21 2024 - 01:35:02 EST


Amir Mohammadi wrote:
> A NULL pointer dereference could occur if ksyms
> is not properly checked before usage in the prog_dump() function.
>
> Signed-off-by: Amir Mohammadi <amiremohamadi@xxxxxxxxx>
> ---
> tools/bpf/bpftool/prog.c | 17 ++++++++++++-----
> 1 file changed, 12 insertions(+), 5 deletions(-)

LGTM but still needs a Fixes line.