aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorParav Pandit <[email protected]>2019-02-12 14:24:08 -0600
committerDavid S. Miller <[email protected]>2019-02-14 11:45:39 -0500
commitdac7c08f988bbc7208fc7403a5d75d4bb791139c (patch)
tree8e7656b635d933726902556ed2c4a02546b390eb /tools/perf/scripts/python/netdev-times.py
parentfdd41ec21e150113e8fe169783db9b2030f5491b (diff)
devlink: Fix list access without lock while reading region
While finding the devlink device during region reading, devlink device list is accessed and devlink device is returned without holding a lock. This could lead to use-after-free accesses. While at it, add lockdep assert to ensure that all future callers hold the lock when calling devlink_get_from_attrs(). Fixes: 4e54795a27f5 ("devlink: Add support for region snapshot read command") Signed-off-by: Parav Pandit <[email protected]> Acked-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions