]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Protect devlink port list traversal
authorParav Pandit <parav@nvidia.com>
Fri, 21 Aug 2020 19:12:21 +0000 (22:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Aug 2020 23:02:47 +0000 (16:02 -0700)
commite3cfd300f47799be528da796b12d6355ad79b0db
tree939207f4af7fee2dadae5b20d518da41adecce97
parent1997b13bccb224e46059050447c6f71203b55dcb
devlink: Protect devlink port list traversal

Cited patch in fixes tag misses to protect port list traversal
while traversing per port reporter list.

Protect it using devlink instance lock.

Fixes: 960775266059 ("devlink: Implement devlink health reporters on per-port basis")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c