Netdev List
 help / color / mirror / Atom feed
* [PATCH bpf 0/2] tools: bpftool: fix unlikely race and JSON output on error path
@ 2017-12-22 19:36 Jakub Kicinski
  2017-12-22 19:36 ` [PATCH bpf 1/2] tools: bpftool: maps: close json array on error paths of show Jakub Kicinski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jakub Kicinski @ 2017-12-22 19:36 UTC (permalink / raw)
  To: netdev, daniel, alexei.starovoitov; +Cc: oss-drivers, Jakub Kicinski

Hi!

Two small fixes here to listing maps and programs.  The loop for showing
maps is written slightly differently to programs which was missed in JSON
output support, and output would be broken if any of the system calls
failed.  Second fix is in very unlikely case that program or map disappears
after we get its ID we should just skip over that object instead of failing.

Jakub Kicinski (2):
  tools: bpftool: maps: close json array on error paths of show
  tools: bpftool: protect against races with disappearing objects

 tools/bpf/bpftool/map.c  | 8 +++++---
 tools/bpf/bpftool/prog.c | 2 ++
 2 files changed, 7 insertions(+), 3 deletions(-)

-- 
2.15.1

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

end of thread, other threads:[~2017-12-23  0:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-22 19:36 [PATCH bpf 0/2] tools: bpftool: fix unlikely race and JSON output on error path Jakub Kicinski
2017-12-22 19:36 ` [PATCH bpf 1/2] tools: bpftool: maps: close json array on error paths of show Jakub Kicinski
2017-12-22 19:36 ` [PATCH bpf 2/2] tools: bpftool: protect against races with disappearing objects Jakub Kicinski
2017-12-23  0:12 ` [PATCH bpf 0/2] tools: bpftool: fix unlikely race and JSON output on error path Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox