]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: fix "valid read map access into a read-only array 1" on s390
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 18 Jul 2019 09:13:35 +0000 (11:13 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 18 Jul 2019 20:49:21 +0000 (13:49 -0700)
commitd0b2fb42972df8e0429da756d14955c2104a99d8
tree012d8afb1916367dc45623140ed6f2af898951e8
parent23d027f947998efe21f38f352680b34bdba2d985
selftests/bpf: fix "valid read map access into a read-only array 1" on s390

This test looks up a 32-bit map element and then loads it using a 64-bit
load. This does not work on s390, which is a big-endian machine.

Since the point of this test doesn't seem to be loading a smaller value
using a larger load, simply use a 32-bit load.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/verifier/array_access.c