diff options
author | Cong Wang <[email protected]> | 2020-10-02 12:13:34 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-10-04 14:53:06 -0700 |
commit | 580e4273d7a883ececfefa692c1f96bdbacb99b5 (patch) | |
tree | 094b0f1cde71ff222877ed9f94175f474c387696 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 9a9e77495958c7382b2438bc19746dd3aaaabb8e (diff) |
net_sched: check error pointer in tcf_dump_walker()
Although we take RTNL on dump path, it is possible to
skip RTNL on insertion path. So the following race condition
is possible:
rtnl_lock() // no rtnl lock
mutex_lock(&idrinfo->lock);
// insert ERR_PTR(-EBUSY)
mutex_unlock(&idrinfo->lock);
tc_dump_action()
rtnl_unlock()
So we have to skip those temporary -EBUSY entries on dump path
too.
Reported-and-tested-by: [email protected]
Fixes: 0fedc63fadf0 ("net_sched: commit action insertions together")
Cc: Vlad Buslov <[email protected]>
Cc: Jamal Hadi Salim <[email protected]>
Cc: Jiri Pirko <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions