Merge branch 'bpf-fix-wide-loads-sockaddr'
Stanislav Fomichev says: ==================== When fixing selftests by adding support for wide stores, Yonghong reported that he had seen some examples where clang generates single u64 loads for two adjacent u32s as well: http://lore.kernel.org/netdev/a66c937f-94c0-eaf8-5b37-8587d66c0c62@fb.com Fix this to support aligned u64 reads for some bpf_sock_addr fields as well. ==================== Acked-by:Andrii Narkyiko <andriin@fb.com> Acked-by:
Yonghong Song <yhs@fb.com> Signed-off-by:
Daniel Borkmann <daniel@iogearbox.net>
Showing
- include/linux/filter.h 1 addition, 1 deletioninclude/linux/filter.h
- include/uapi/linux/bpf.h 2 additions, 2 deletionsinclude/uapi/linux/bpf.h
- net/core/filter.c 17 additions, 7 deletionsnet/core/filter.c
- tools/include/uapi/linux/bpf.h 2 additions, 2 deletionstools/include/uapi/linux/bpf.h
- tools/testing/selftests/bpf/verifier/wide_access.c 73 additions, 0 deletionstools/testing/selftests/bpf/verifier/wide_access.c
- tools/testing/selftests/bpf/verifier/wide_store.c 0 additions, 36 deletionstools/testing/selftests/bpf/verifier/wide_store.c
Loading
Please register or sign in to comment