diff options
| author | Daniel Borkmann <[email protected]> | 2020-03-27 15:58:56 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-03-28 02:40:39 +0000 |
| commit | 23599ada0e9173e92d3cc26254b1e18e542c469d (patch) | |
| tree | 32f01659caf64cb51f6e92cb178eb2dde502a906 /tools/lib/bpf/netlink.c | |
| parent | bpf: Enable retrival of pid/tgid/comm from bpf cgroup hooks (diff) | |
| download | kernel-23599ada0e9173e92d3cc26254b1e18e542c469d.tar.gz kernel-23599ada0e9173e92d3cc26254b1e18e542c469d.zip | |
bpf: Add selftest cases for ctx_or_null argument type
Add various tests to make sure the verifier keeps catching them:
# ./test_verifier
[...]
#230/p pass ctx or null check, 1: ctx OK
#231/p pass ctx or null check, 2: null OK
#232/p pass ctx or null check, 3: 1 OK
#233/p pass ctx or null check, 4: ctx - const OK
#234/p pass ctx or null check, 5: null (connect) OK
#235/p pass ctx or null check, 6: null (bind) OK
#236/p pass ctx or null check, 7: ctx (bind) OK
#237/p pass ctx or null check, 8: null (bind) OK
[...]
Summary: 1595 PASSED, 0 SKIPPED, 0 FAILED
Signed-off-by: Daniel Borkmann <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/c74758d07b1b678036465ef7f068a49e9efd3548.1585323121.git.daniel@iogearbox.net
Diffstat (limited to 'tools/lib/bpf/netlink.c')
0 files changed, 0 insertions, 0 deletions
