selftests/bpf: Fix misaligned accesses in xdp and xdp_bpf2bpf tests
mainline inclusion from mainline-5.17-rc1 commit 8f6f41f3 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5EUVD CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f6f41f39348f25db843f2fcb2f1c166b4bfa2d7 ------------------------------------------------- Similar to previous patch, just copy over necessary struct into local stack variable before checking its fields. Signed-off-by: NAndrii Nakryiko <andrii@kernel.org> Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20211124002325.1737739-14-andrii@kernel.org (cherry picked from commit 8f6f41f3) Signed-off-by: NWang Yufen <wangyufen@huawei.com>
Showing
想要评论请 注册 或 登录