Skip to content
Commit 759b94a0 authored by Taeung Song's avatar Taeung Song Committed by Daniel Borkmann
Browse files

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: 71bb428f

 ("tools: bpf: add bpftool")
Reviewed-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Reported-by: default avatarTaehee Yoo <ap420073@gmail.com>
Signed-off-by: default avatarTaeung Song <treeze.taeung@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent bb392867
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment