diff options
author | Daniel T. Lee | 2019-04-04 00:17:55 +0200 |
---|---|---|
committer | Daniel Borkmann | 2019-04-04 16:43:46 +0200 |
commit | 0979ff7992fb6f4eb837995b12f4071dcafebd2d (patch) | |
tree | 82e7bbd768ae68415384cf0d39384857157e29e2 /samples | |
parent | Merge branch 'bpf-verifier-scalability' (diff) | |
download | kernel-qcow2-linux-0979ff7992fb6f4eb837995b12f4071dcafebd2d.tar.gz kernel-qcow2-linux-0979ff7992fb6f4eb837995b12f4071dcafebd2d.tar.xz kernel-qcow2-linux-0979ff7992fb6f4eb837995b12f4071dcafebd2d.zip |
selftests/bpf: ksym_search won't check symbols exists
Currently, ksym_search located at trace_helpers won't check symbols are
existing or not.
In ksym_search, when symbol is not found, it will return &syms[0](_stext).
But when the kernel symbols are not loaded, it will return NULL, which is
not a desired action.
This commit will add verification logic whether symbols are loaded prior
to the symbol search.
Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions