diff options
| author | Hengqi Chen <[email protected]> | 2022-07-12 02:57:45 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-07-13 19:02:59 +0000 |
| commit | 8ed2f5a6f385b5fff313208b90ea83f7121bd909 (patch) | |
| tree | 6eac39532f5954222bd4d75efe8ead2d6cc77026 /samples/bpf/sock_example.c | |
| parent | bpf: Make non-preallocated allocation low priority (diff) | |
| download | kernel-8ed2f5a6f385b5fff313208b90ea83f7121bd909.tar.gz kernel-8ed2f5a6f385b5fff313208b90ea83f7121bd909.zip | |
libbpf: Error out when binary_path is NULL for uprobe and USDT
binary_path is a required non-null parameter for bpf_program__attach_usdt
and bpf_program__attach_uprobe_opts. Check it against NULL to prevent
coredump on strchr.
Signed-off-by: Hengqi Chen <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'samples/bpf/sock_example.c')
0 files changed, 0 insertions, 0 deletions
