[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251117085632.429735-1-zhaochenguang@kylinos.cn>
Date: Mon, 17 Nov 2025 16:56:32 +0800
From: Chenguang Zhao <zhaochenguang@...inos.cn>
To: Pablo Neira Ayuso <pablo@...filter.org>,
Jozsef Kadlecsik <kadlec@...filter.org>,
Florian Westphal <fw@...len.de>,
Phil Sutter <phil@....cc>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>
Cc: Chenguang Zhao <zhaochenguang@...inos.cn>,
netfilter-devel@...r.kernel.org,
coreteam@...filter.org,
netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH linux] netfilter: conntrack: Add missing modification about data-race around ct->timeout
Add missing modification about data-race around ct->timeout
Signed-off-by: Chenguang Zhao <zhaochenguang@...inos.cn>
Fixes: 802a7dc5cf1b ("netfilter: conntrack: annotate data-races around ct->timeout")
---
net/netfilter/nf_conntrack_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index 344f88295976..0b26d53f3b65 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -1297,7 +1297,7 @@ __nf_conntrack_confirm(struct sk_buff *skb)
/* Timeout is relative to confirmation time, not original
setting time, otherwise we'd get timer wrap in
weird delay cases. */
- ct->timeout += nfct_time_stamp;
+ WRITE_ONCE(ct->timeout, ct->timeout + nfct_time_stamp);
__nf_conntrack_insert_prepare(ct);
--
2.25.1
Powered by blists - more mailing lists