selftests/bpf: Fix misaligned memory accesses in xdp_bonding test
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 24 Nov 2021 00:23:24 +0000 (16:23 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 25 Nov 2021 23:15:03 +0000 (00:15 +0100)
commit43080b7106db5bcdb4f09c2648e968151e1461b7
tree84fd57364423d453290967951af40def42bcac74
parent57428298b5acf2ba2dd98359c532774f6eaeecb3
selftests/bpf: Fix misaligned memory accesses in xdp_bonding test

Construct packet buffer explicitly for each packet to avoid unaligned
memory accesses.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211124002325.1737739-13-andrii@kernel.org
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c