Hello:
This patch was applied to bpf/bpf.git (refs/heads/master):
On Sun, 28 Feb 2021 12:30:17 +0200 you wrote:
The verifier test labelled "valid read map access into a read-only array
2" calls the bpf_csum_diff() helper and checks its return value.
However, architecture implementations of csum_partial() (which is what
the helper uses) differ in whether they fold the return value to 16 bit
or not. For example, x86 version has:
if (unlikely(odd)) {
result = from32to16(result);
result = ((result >> 8) & 0xff) | ((result & 0xff) << 8);
}
[...]
Here is the summary with links:
- bpf: selftests: test_verifier: mask bpf_csum_diff() return value to 16 bits
https://git.kernel.org/bpf/bpf/c/cf14da96aa18
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html