Re: [PATCH bpf] bpftool: Fix NULL pointer dereference when pin {PROG, MAP, LINK} without FILE

From: patchwork-bot+netdevbpf
Date: Wed Nov 02 2022 - 07:13:21 EST


Hello:

This patch was applied to bpf/bpf.git (master)
by Daniel Borkmann <daniel@xxxxxxxxxxxxx>:

On Wed, 2 Nov 2022 16:40:34 +0800 you wrote:
> From: Pu Lehui <pulehui@xxxxxxxxxx>
>
> When using bpftool to pin {PROG, MAP, LINK} without FILE,
> segmentation fault will occur. The reson is that the lack
> of FILE will cause strlen to trigger NULL pointer dereference.
> The corresponding stacktrace is shown below:
>
> [...]

Here is the summary with links:
- [bpf] bpftool: Fix NULL pointer dereference when pin {PROG, MAP, LINK} without FILE
https://git.kernel.org/bpf/bpf/c/34de8e6e0e1f

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html