]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcp: annotate data-races around icsk->icsk_pending
authorEric Dumazet <edumazet@google.com>
Wed, 2 Oct 2024 17:30:40 +0000 (17:30 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Oct 2024 22:34:39 +0000 (15:34 -0700)
commit5a9071a760a61b00260334ad576fe60debafaafc
tree12c4ab5c51e735e4a18e4dbc2b3113d417456fbf
parentd454184bba235d3a5d1ff4b30597b43a08c00f70
tcp: annotate data-races around icsk->icsk_pending

icsk->icsk_pending can be read locklessly already.

Following patch in the series will add another lockless read.

Add smp_load_acquire() and smp_store_release() annotations
because following patch will add a test in tcp_write_timer(),
and READ_ONCE()/WRITE_ONCE() alone would possibly lead to races.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20241002173042.917928-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/inet_connection_sock.h
net/ipv4/inet_connection_sock.c
net/ipv4/inet_diag.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_output.c
net/ipv4/tcp_timer.c
net/ipv6/tcp_ipv6.c