selftests/bpf: test references to sock_common
authorLorenz Bauer <lmb@cloudflare.com>
Fri, 22 Mar 2019 01:54:05 +0000 (09:54 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 Mar 2019 01:59:11 +0000 (18:59 -0700)
commit5792d52df1e77110abf0d11b1131992a8c0c8d17
treef3e22acfedd90fe5b38dfac3507a0d17ac2106d2
parentdbaf2877e9ad0ac77c463d1bf87b2eb7efc46160
selftests/bpf: test references to sock_common

Make sure that returning a struct sock_common * reference invokes
the reference tracking machinery in the verifier.

Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/verifier/ref_tracking.c