[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<176046960676.63650.4776306407784411161.git-patchwork-notify@kernel.org>
Date: Tue, 14 Oct 2025 19:20:06 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Shardul Bankar <shardulsb08@...il.com>
Cc: bpf@...r.kernel.org, ast@...nel.org, daniel@...earbox.net,
andrii@...nel.org, martin.lau@...ux.dev, eddyz87@...il.com, song@...nel.org,
yonghong.song@...ux.dev, john.fastabend@...il.com, kpsingh@...nel.org,
sdf@...ichev.me, haoluo@...gle.com, jolsa@...nel.org, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com, horms@...nel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH bpf 1/1] bpf: test_run: fix ctx leak in
bpf_prog_test_run_xdp
error path
Hello:
This patch was applied to bpf/bpf.git (master)
by Martin KaFai Lau <martin.lau@...nel.org>:
On Tue, 14 Oct 2025 17:30:37 +0530 you wrote:
> Fix a memory leak in bpf_prog_test_run_xdp() where the context buffer
> allocated by bpf_ctx_init() is not freed when the function returns early
> due to a data size check.
>
> On the failing path:
> ctx = bpf_ctx_init(...);
> if (kattr->test.data_size_in - meta_sz < ETH_HLEN)
> return -EINVAL;
>
> [...]
Here is the summary with links:
- [bpf,1/1] bpf: test_run: fix ctx leak in bpf_prog_test_run_xdp error path
https://git.kernel.org/bpf/bpf/c/7f9ee5fc97e1
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