[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171222193606.19786-1-jakub.kicinski@netronome.com>
Date: Fri, 22 Dec 2017 11:36:04 -0800
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: netdev@...r.kernel.org, daniel@...earbox.net,
alexei.starovoitov@...il.com
Cc: oss-drivers@...ronome.com,
Jakub Kicinski <jakub.kicinski@...ronome.com>
Subject: [PATCH bpf 0/2] tools: bpftool: fix unlikely race and JSON output on error path
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
Powered by blists - more mailing lists