]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1470ccdc8001c322945dcad140252098a6ed1ede
tree84fd57364423d453290967951af40def42bcac74
parent16562a4106275a09dfef44039a0f510faee7633f
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