Re: [PATCH bpf-next v2 0/2] bpf: Move IPIs out of pack_mutex and reduce IBPB flushes

From: patchwork-bot+netdevbpf

Date: Thu Dec 03 2026 - 22:40:12 EST


Hello:

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

On Thu, 3 Dec 2026 14:09:20 +0000 you wrote:
> From: Xu Kuohai <xukuohai@xxxxxxxxxx>
>
> BPF JIT memory is allocated through the BPF program pack allocator,
> which uses a global pack_mutex to protect its packs. While holding this
> lock, the allocator currently sends IPI to all CPUs on two paths: IBPB
> flush on the x86 alloc path and CPU pipeline flush on the arm64 free
> path. Because the caller can be preempted while waiting for the IPI
> completion, the lock can be held for a long time, causing heavy lock
> contention on busy systems.
>
> [...]

Here is the summary with links:
- [bpf-next,v2,1/2] bpf: Invalidate freed prog pack memory without holding pack_mutex
https://git.kernel.org/bpf/bpf-next/c/3c61cdf2d32c
- [bpf-next,v2,2/2] bpf: Reduce branch predictor flush and move it out of pack_mutex
https://git.kernel.org/bpf/bpf-next/c/88931b030b19

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