Files
android_kernel_xiaomi_sm8450/tools/testing/selftests/bpf/verifier
Luke Nelson d2b6c3ab70 bpf, selftests: Add test for BPF_STX BPF_B storing R10
This patch adds a test to test_verifier that writes the lower 8 bits of
R10 (aka FP) using BPF_B to an array map and reads the result back. The
expected behavior is that the result should be the same as first copying
R10 to R9, and then storing / loading the lower 8 bits of R9.

This test catches a bug that was present in the x86-64 JIT that caused
an incorrect encoding for BPF_STX BPF_B when the source operand is R10.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Luke Nelson <luke.r.nels@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200418232655.23870-2-luke.r.nels@gmail.com
2020-04-20 19:25:30 -07:00
..
2019-01-27 21:37:45 -08:00
2019-01-27 21:37:45 -08:00
2019-06-19 02:22:52 +02:00
2019-06-19 02:22:52 +02:00
2019-01-27 21:37:45 -08:00
2019-01-27 21:37:45 -08:00
2019-04-16 10:18:15 +02:00
2019-01-27 21:37:45 -08:00