net: annotate data-races around dev->name_assign_type
authorEric Dumazet <edumazet@google.com>
Tue, 13 Feb 2024 06:32:33 +0000 (06:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Feb 2024 11:20:13 +0000 (11:20 +0000)
commit1c07dbb0cccfe85060b6eb089db3d6bfeb6aaf31
treee25a4f32e31aeb6456faf5ab66b9f2576ce33056
parentb7f9ef72783927d152f362912889b72948f49e23
net: annotate data-races around dev->name_assign_type

name_assign_type_show() runs locklessly, we should annotate
accesses to dev->name_assign_type.

Alternative would be to grab devnet_rename_sem semaphore
from name_assign_type_show(), but this would not bring
more accuracy.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
net/core/net-sysfs.c