diff options
author | Taeung Song <[email protected]> | 2018-07-19 21:10:05 +0900 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2018-07-20 10:16:54 +0200 |
commit | 759b94a00a207ef605f3fd6f6e99570799688145 (patch) | |
tree | 5cbf780a0d57a7c4b80ac978791590e734ea0b48 /scripts/gdb/linux/lists.py | |
parent | bb3928673955b423db270982ff7dad19a3e22d9c (diff) |
tools/bpftool: Fix segfault case regarding 'pin' arguments
Arguments of 'pin' subcommand should be checked
at the very beginning of do_pin_any().
Otherwise segfault errors can occur when using
'map pin' or 'prog pin' commands, so fix it.
# bpftool prog pin id
Segmentation fault
Fixes: 71bb428fe2c1 ("tools: bpf: add bpftool")
Reviewed-by: Jakub Kicinski <[email protected]>
Reported-by: Taehee Yoo <[email protected]>
Signed-off-by: Taeung Song <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions