[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <163494660700.5438.6280491410693757212.git-patchwork-notify@kernel.org>
Date: Fri, 22 Oct 2021 23:50:07 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Quentin Monnet <quentin@...valent.com>
Cc: ast@...nel.org, daniel@...earbox.net, andrii@...nel.org,
netdev@...r.kernel.org, bpf@...r.kernel.org, zhuyifei@...gle.com
Subject: Re: [PATCH bpf-next] bpftool: avoid leaking the JSON writer prepared for
program metadata
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@...nel.org>:
On Fri, 22 Oct 2021 10:47:43 +0100 you wrote:
> Bpftool creates a new JSON object for writing program metadata in plain
> text mode, regardless of metadata being present or not. Then this writer
> is freed if any metadata has been found and printed, but it leaks
> otherwise. We cannot destroy the object unconditionally, because the
> destructor prints an undesirable line break. Instead, make sure the
> writer is created only after we have found program metadata to print.
>
> [...]
Here is the summary with links:
- [bpf-next] bpftool: avoid leaking the JSON writer prepared for program metadata
https://git.kernel.org/bpf/bpf-next/c/e89ef634f81c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists