summaryrefslogtreecommitdiffstats
path: root/lib/nlattr.c
diff options
context:
space:
mode:
authorJohn Fastabend <john.fastabend@gmail.com>2018-04-23 12:11:08 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2018-04-23 23:42:21 +0200
commit4dfe1bb95235c553e216222cf0c377faf191dacd (patch)
treec17538540373636c82bf497211adf60562cf1c7b /lib/nlattr.c
parent514d6c1959f9b396f1b51850925900adedffb951 (diff)
downloadlinux-4dfe1bb95235c553e216222cf0c377faf191dacd.tar.bz2
bpf: sockmap sample use clang flag, -target bpf
Per Documentation/bpf/bpf_devel_QA.txt add the -target flag to the sockmap Makefile. Relevant text quoted here, Otherwise, you can use bpf target. Additionally, you _must_ use bpf target when: - Your program uses data structures with pointer or long / unsigned long types that interface with BPF helpers or context data structures. Access into these structures is verified by the BPF verifier and may result in verification failures if the native architecture is not aligned with the BPF architecture, e.g. 64-bit. An example of this is BPF_PROG_TYPE_SK_MSG require '-target bpf' Fixes: 69e8cc134bcb ("bpf: sockmap sample program") Signed-off-by: John Fastabend <john.fastabend@gmail.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'lib/nlattr.c')
0 files changed, 0 insertions, 0 deletions