Re: [PATCH] potential negative index dereference fix in get_exec_path()

From: patchwork-bot+netdevbpf
Date: Thu Jun 12 2025 - 22:20:14 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:

On Thu, 12 Jun 2025 16:18:16 +0300 you wrote:
> If readlink() fails, len will be -1, which can cause negative indexing
> and undefined behavior. This patch ensures that len is set to 0 on
> readlink failure, preventing such issues.
>
> Signed-off-by: Ruslan Semchenko <uncleruc2075@xxxxxxxxx>
> ---
> tools/bpf/bpf_jit_disasm.c | 2 ++
> 1 file changed, 2 insertions(+)

Here is the summary with links:
- potential negative index dereference fix in get_exec_path()
https://git.kernel.org/bpf/bpf-next/c/af91af33c168

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