nch 0x221E-v0.0-v7.0
Hosts the 0x221E linux distro kernel.https://universe.0xinfinity.dev/distro/kernel/atom?h=0x221E-v0.0-v7.02023-01-30T03:16:28Zselftests/bpf: Fix sk_assign on s390x2023-01-30T03:16:28ZIlya Leoshkevichiii@linux.ibm.com2023-01-29T19:04:54Zurn:sha1:7ce878ca81bca7811e669db4c394b86780e0dbe4
sk_assign is failing on an s390x machine running Debian "bookworm" for
2 reasons: legacy server_map definition and uninitialized addrlen in
recvfrom() call.
Fix by adding a new-style server_map definition and dropping addrlen
(recvfrom() allows NULL values for src_addr and addrlen).
Since the test should support tc built without libbpf, build the prog
twice: with the old-style definition and with the new-style definition,
then select the right one at runtime. This could be done at compile
time too, but this would not be cross-compilation friendly.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20230129190501.1624747-2-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>