mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
ipv6: annotate data-races in ip6_multipath_hash_{policy,fields}()
Add missing READ_ONCE() when reading sysctl values. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20260115094141.3124990-5-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
3681282530
commit
03e9d91dd6
|
|
@ -1014,11 +1014,11 @@ static inline int ip6_default_np_autolabel(const struct net *net)
|
|||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
static inline int ip6_multipath_hash_policy(const struct net *net)
|
||||
{
|
||||
return net->ipv6.sysctl.multipath_hash_policy;
|
||||
return READ_ONCE(net->ipv6.sysctl.multipath_hash_policy);
|
||||
}
|
||||
static inline u32 ip6_multipath_hash_fields(const struct net *net)
|
||||
{
|
||||
return net->ipv6.sysctl.multipath_hash_fields;
|
||||
return READ_ONCE(net->ipv6.sysctl.multipath_hash_fields);
|
||||
}
|
||||
#else
|
||||
static inline int ip6_multipath_hash_policy(const struct net *net)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user