selftests/bpf: Fix misaligned memory access in queue_stack_map test
mainline inclusion from mainline-5.17-rc1 commit e2e0d90c 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=e2e0d90c550a2588ebed7aa2753adaac0f633989 ------------------------------------------------- Copy over iphdr into a local variable before accessing 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-11-andrii@kernel.org (cherry picked from commit e2e0d90c) Signed-off-by: NWang Yufen <wangyufen@huawei.com>
Showing
想要评论请 注册 或 登录