aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorMoshe Shemesh <[email protected]>2023-10-05 15:50:16 +0300
committerJakub Kicinski <[email protected]>2023-10-06 15:56:46 -0700
commitaba0e909dc20eceb1de985474af459f82e7b0b82 (patch)
treeabc4cd4704db73c3d8702c7025f6851ca28fef6c /lib/test_fortify/write_overflow-strncpy-src.c
parentc4d49196ceec80e30e8d981410d73331b49b7850 (diff)
devlink: Hold devlink lock on health reporter dump get
Devlink health dump get callback should take devlink lock as any other devlink callback. Otherwise, since devlink_mutex was removed, this callback is not protected from a race of the reporter being destroyed while handling the callback. Add devlink lock to the callback and to any call for devlink_health_do_dump(). This should be safe as non of the drivers dump callback implementation takes devlink lock. As devlink lock is added to any callback of dump, the reporter dump_lock is now redundant and can be removed. Fixes: d3efc2a6a6d8 ("net: devlink: remove devlink_mutex") Signed-off-by: Moshe Shemesh <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Reviewed-by: Przemek Kitszel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions