Home
last modified time | relevance | path

Searched hist:b6ed6cf4a3acdeab9aed8e0a524850761ec9b152 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsk_assign.cdiff b6ed6cf4a3acdeab9aed8e0a524850761ec9b152 Tue Sep 15 06:38:15 CDT 2020 Ilya Leoshkevich <iii@linux.ibm.com> selftests/bpf: Fix endianness issue in sk_assign

server_map's value size is 8, but the test tries to put an int there.
This sort of works on x86 (unless followed by non-0), but hard fails on
s390.

Fix by using __s64 instead of int.

Fixes: 2d7824ffd25c ("selftests: bpf: Add test for sk_assign")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200915113815.3768217-1-iii@linux.ibm.com