Re: [PATCH bpf-next v2] bpf: Use memmove() to load bytes from an skb and an xdp_buff
From: patchwork-bot+netdevbpf
Date: Sat Oct 24 2026 - 00:00:19 EST
Hello:
This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Thu, 22 Oct 2026 16:53:11 +0530 you wrote:
> bpf_dynptr_read() on an skb or xdp dynptr ends in bpf_skb_load_bytes()
> or bpf_xdp_load_bytes(). The destination can be a slice of the same
> packet, so it can overlap the source, which memcpy() does not allow.
> On x86 with FSRM memcpy() copies forward, so a destination above the
> source gets the first bytes repeated:
>
> p = bpf_dynptr_slice_rdwr(&ptr, 8, NULL, 64);
> bpf_dynptr_read(p, 64, &ptr, 0, 0);
>
> [...]
Here is the summary with links:
- [bpf-next,v2] bpf: Use memmove() to load bytes from an skb and an xdp_buff
https://git.kernel.org/bpf/bpf/c/b93cf2c8a055
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html