Re: [PATCH bpf-next v2 0/5] Make struct bpf_cpumask RCU safe

From: patchwork-bot+netdevbpf
Date: Thu Mar 16 2023 - 15:40:35 EST


Hello:

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

On Thu, 16 Mar 2023 00:40:23 -0500 you wrote:
> The struct bpf_cpumask type is currently not RCU safe. It uses the
> bpf_mem_cache_{alloc,free}() APIs to allocate and release cpumasks, and
> those allocations may be reused before an RCU grace period has elapsed.
> We want to be able to enable using this pattern in BPF programs:
>
> private(MASK) static struct bpf_cpumask __kptr *global;
>
> [...]

Here is the summary with links:
- [bpf-next,v2,1/5] bpf: Free struct bpf_cpumask in call_rcu handler
https://git.kernel.org/bpf/bpf-next/c/77473d1a962f
- [bpf-next,v2,2/5] bpf: Mark struct bpf_cpumask as rcu protected
https://git.kernel.org/bpf/bpf-next/c/63d2d83d21a6
- [bpf-next,v2,3/5] bpf/selftests: Test using global cpumask kptr with RCU
https://git.kernel.org/bpf/bpf-next/c/a5a197df58c4
- [bpf-next,v2,4/5] bpf: Remove bpf_cpumask_kptr_get() kfunc
https://git.kernel.org/bpf/bpf-next/c/1b403ce77dfb
- [bpf-next,v2,5/5] bpf,docs: Remove bpf_cpumask_kptr_get() from documentation
https://git.kernel.org/bpf/bpf-next/c/fec2c6d14fd5

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