Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/bpf: Fix cgrp_local_storage on s390x

Sync the definition of socket_cookie between the eBPF program and the
test. Currently the test works by accident, since on little-endian it
is sometimes acceptable to access u64 as u32.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20230128000650.1516334-12-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Ilya Leoshkevich and committed by
Alexei Starovoitov
06cea99e 06c1865b

+1 -1
+1 -1
tools/testing/selftests/bpf/prog_tests/cgrp_local_storage.c
··· 16 16 17 17 struct socket_cookie { 18 18 __u64 cookie_key; 19 - __u32 cookie_value; 19 + __u64 cookie_value; 20 20 }; 21 21 22 22 static void test_tp_btf(int cgroup_fd)