diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2021-02-10 03:07:13 +0100 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-02-10 11:55:22 -0800 |
commit | 45df3052682564327acc0a0fdb0f9adc3a27a50b (patch) | |
tree | a711dac80af18c39591f94dd15eef9fe7139472a /tools/testing/selftests/bpf/prog_tests/recursion.c | |
parent | cf2d0a5e788bbe072cc4415572f4a3d9689cf8b8 (diff) | |
download | linux-45df3052682564327acc0a0fdb0f9adc3a27a50b.tar.gz linux-45df3052682564327acc0a0fdb0f9adc3a27a50b.tar.bz2 linux-45df3052682564327acc0a0fdb0f9adc3a27a50b.zip |
selftests/bpf: Fix endianness issues in atomic tests
Atomic tests store a DW, but then load it back as a W from the same
address. This doesn't work on big-endian systems, and since the point
of those tests is not testing narrow loads, fix simply by loading a
DW.
Fixes: 98d666d05a1d ("bpf: Add tests for new BPF atomic operations")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210210020713.77911-1-iii@linux.ibm.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions