]> Git Repo - linux.git/commit
tools: bpftool: protect against races with disappearing objects
authorJakub Kicinski <[email protected]>
Fri, 22 Dec 2017 19:36:06 +0000 (11:36 -0800)
committerDaniel Borkmann <[email protected]>
Sat, 23 Dec 2017 00:09:52 +0000 (01:09 +0100)
commit8207c6dd4746c345b689684c4cd0ce00a18c7ef2
tree36104aee2ea7b2b4a7326c369478890aad7243ef
parentb3b1b6532890c70987821946f90c22b8021aaaf8
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 <[email protected]>
Acked-by: Quentin Monnet <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
tools/bpf/bpftool/map.c
tools/bpf/bpftool/prog.c
This page took 0.044996 seconds and 4 git commands to generate.