Re: [PATCH] bpf: use kvzmalloc to allocate BPF verifier environment

From: patchwork-bot+netdevbpf
Date: Wed Oct 09 2024 - 21:20:47 EST


Hello:

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

On Tue, 8 Oct 2024 17:07:35 -0400 you wrote:
> The kzmalloc call in bpf_check can fail when memory is very fragmented,
> which in turn can lead to an OOM kill.
>
> Use kvzmalloc to fall back to vmalloc when memory is too fragmented to
> allocate an order 3 sized bpf verifier environment.
>
> Admittedly this is not a very common case, and only happens on systems
> where memory has already been squeezed close to the limit, but this does
> not seem like much of a hot path, and it's a simple enough fix.
>
> [...]

Here is the summary with links:
- bpf: use kvzmalloc to allocate BPF verifier environment
https://git.kernel.org/bpf/bpf/c/434247637c66

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