diff options
author | Parav Pandit | 2020-11-25 11:16:19 +0200 |
---|---|---|
committer | Jakub Kicinski | 2020-11-25 17:26:34 -0800 |
commit | b187c9b4178b87954dbc94e78a7094715794714f (patch) | |
tree | 1198ba7ba2156a4d6b10983528c356344cbaf12f /net/dcb/dcbevent.c | |
parent | 3cb2e6d92be637b79d6ba0746d610a8dfcc0400b (diff) |
devlink: Hold rtnl lock while reading netdev attributes
A netdevice of a devlink port can be moved to different net namespace
than its parent devlink instance.
This scenario occurs when devlink reload is not used.
When netdevice is undergoing migration to net namespace, its ifindex
and name may change.
In such use case, devlink port query may read stale netdev attributes.
Fix it by reading them under rtnl lock.
Fixes: bfcd3a466172 ("Introduce devlink infrastructure")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/dcb/dcbevent.c')
0 files changed, 0 insertions, 0 deletions