aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dst.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2025-06-30 12:19:25 +0000
committerJakub Kicinski <[email protected]>2025-07-02 21:32:29 +0000
commit8a402bbe54760dea67f1b2980c727761b47994d7 (patch)
treeb478ead62258f97c29228298a2cf109e5bfc222f /net/core/dst.c
parentMerge branch 'net-introduce-net_aligned_data' (diff)
downloadkernel-8a402bbe54760dea67f1b2980c727761b47994d7.tar.gz
kernel-8a402bbe54760dea67f1b2980c727761b47994d7.zip
net: dst: annotate data-races around dst->obsolete
(dst_entry)->obsolete is read locklessly, add corresponding annotations. Signed-off-by: Eric Dumazet <[email protected]> Reviewed-by: Kuniyuki Iwashima <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/dst.c')
-rw-r--r--net/core/dst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dst.c b/net/core/dst.c
index 795ca07e28a4..8f2a3138d60c 100644
--- a/net/core/dst.c
+++ b/net/core/dst.c
@@ -145,7 +145,7 @@ void dst_dev_put(struct dst_entry *dst)
{
struct net_device *dev = dst->dev;
- dst->obsolete = DST_OBSOLETE_DEAD;
+ WRITE_ONCE(dst->obsolete, DST_OBSOLETE_DEAD);
if (dst->ops->ifdown)
dst->ops->ifdown(dst, dev);
dst->input = dst_discard;