Re: [PATCH] bpf: Use refcount_t instead of atomic_t for mmap_count

patchwork-bot+netdevbpf
2024-12-31T04:20:10Z

Hello:

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

On Mon, 30 Dec 2024 15:16:55 +0800 you wrote:
> Use an API that resembles more the actual use of mmap_count.
>
> Found by cocci:
> kernel/bpf/arena.c:245:6-25: WARNING: atomic_dec_and_test variation before object free at line 249.
>
> Fixes: b90d77e5fd78 ("bpf: Fix remap of arena.")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202412292037.LXlYSHKl-lkp@intel.com/
> Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
>
> [...]

Here is the summary with links:
- bpf: Use refcount_t instead of atomic_t for mmap_count
https://git.kernel.org/bpf/bpf-next/c/dfa94ce54f41

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.