Re: [PATCH v3] bpftool: fix potential NULL pointer dereferencing in prog_dump()
From: Quentin Monnet
Date: Thu Nov 21 2024 - 06:18:51 EST
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!