Re: [PATCH v3] bpf: Annotate bpf_obj_memcpy with data_race
From: patchwork-bot+netdevbpf
Date: Sun Aug 23 2026 - 15:41:10 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>:
On Sat, 22 Aug 2026 14:55:33 +0800 you wrote:
> From: Quanye Yang <quanyeyang@xxxxxxxxx>
>
> syzbot reported KCSAN write-write races when two tasks concurrently
> update the same map value. Both accesses reach the ordinary memcpy()
> paths in bpf_obj_memcpy() through copy_map_value().
>
> Unlocked in-place updates of published map values are intentionally not
> serialized and may produce torn values. Callers requiring consistency
> must provide synchronization appropriate for the map type.
> bpf_long_memcpy() already annotates the same behavior for long-aligned
> copies.
>
> [...]
Here is the summary with links:
- [v3] bpf: Annotate bpf_obj_memcpy with data_race
https://git.kernel.org/bpf/bpf-next/c/5e289c5a4a52
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html