Re: [PATCH v3] bpftool: fix potential NULL pointer dereferencing in prog_dump()
From: John Fastabend
Date: Thu Nov 21 2024 - 18:29:42 EST
Quentin Monnet wrote:
> 2024-11-21 12:04 UTC+0330 ~ Amir Mohammadi <amirmohammadi1999.am@xxxxxxxxx>
> > A NULL pointer dereference could occur if ksyms
> > is not properly checked before usage in the prog_dump() function.
> >
> > Fixes: b053b439b72a ("bpf: libbpf: bpftool: Print bpf_line_info during prog dump")
> > Signed-off-by: Amir Mohammadi <amiremohamadi@xxxxxxxxx>
>
> Reviewed-by: Quentin Monnet <qmo@xxxxxxxxxx>
>
> Thanks!
Acked-by: John Fastabend <john.fastabend@xxxxxxxxx>