All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] tools: bpftool: update prog names list and fix segfault
@ 2020-07-24  9:06 Quentin Monnet
  2020-07-24  9:06 ` [PATCH bpf-next 1/2] tools: bpftool: skip type probe if name is not found Quentin Monnet
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Quentin Monnet @ 2020-07-24  9:06 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann
  Cc: bpf, netdev, Paul Chaignon, Quentin Monnet

Although probing features with bpftool works fine if bpftool's array of
program and map type names lack the latest kernel additions, it can crash
if there are some types missing _in the middle_ of the arrays. The case
recently occurred with the addition of the "sk_lookup" name, which skipped
the "lsm" in the list.

Let's update the list, and let's make sure it does not crash bpftool again
if we omit other types again in the future.

Quentin Monnet (2):
  tools: bpftool: skip type probe if name is not found
  tools: bpftool: add LSM type to array of prog names

 tools/bpf/bpftool/feature.c | 8 ++++++++
 tools/bpf/bpftool/prog.c    | 1 +
 2 files changed, 9 insertions(+)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-07-28 10:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-24  9:06 [PATCH bpf-next 0/2] tools: bpftool: update prog names list and fix segfault Quentin Monnet
2020-07-24  9:06 ` [PATCH bpf-next 1/2] tools: bpftool: skip type probe if name is not found Quentin Monnet
2020-07-27 21:19   ` Song Liu
2020-07-24  9:06 ` [PATCH bpf-next 2/2] tools: bpftool: add LSM type to array of prog names Quentin Monnet
2020-07-27 21:15   ` Song Liu
2020-07-28 10:16 ` [PATCH bpf-next 0/2] tools: bpftool: update prog names list and fix segfault Daniel Borkmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.