Re: [PATCH bpf 0/2] tools: bpftool: fix unlikely race and JSON output on error path

2017-12-22 Thread Daniel Borkmann
On 12/22/2017 08:36 PM, Jakub Kicinski wrote: > 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

[PATCH bpf 0/2] tools: bpftool: fix unlikely race and JSON output on error path

2017-12-22 Thread 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 a