]> 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)
commit3ee1aa4e8c84d7802aef36cb52757ec3373097a9
tree939207f4af7fee2dadae5b20d518da41adecce97
parentfc2b82d1177c165f3c9814c01f9037a3aada7b51
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: 5c243a048d48 ("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