commit | 8207c6dd4746c345b689684c4cd0ce00a18c7ef2 | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <jakub.kicinski@netronome.com> | Fri Dec 22 11:36:06 2017 -0800 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Sat Dec 23 01:09:52 2017 +0100 |
tree | 36104aee2ea7b2b4a7326c369478890aad7243ef | |
parent | b3b1b6532890c70987821946f90c22b8021aaaf8 [diff] |
tools: bpftool: protect against races with disappearing objects On program/map show we may get an ID of an object from GETNEXT, but the object may disappear before we call GET_FD_BY_ID. If that happens, ignore the object and continue. Fixes: 71bb428fe2c1 ("tools: bpf: add bpftool") Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Acked-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>