diff options
author | Eric Dumazet <edumazet@google.com> | 2023-07-19 21:28:57 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-07-20 12:34:18 -0700 |
commit | 70f360dd7042cb843635ece9d28335a4addff9eb (patch) | |
tree | bc0434cfbd9a1d6ecf48ff10f073e031e60808e9 /net/ipv4/tcp.c | |
parent | 26023e91e12c68669db416b97234328a03d8e499 (diff) |
tcp: annotate data-races around fastopenq.max_qlen
This field can be read locklessly.
Fixes: 1536e2857bd3 ("tcp: Add a TCP_FASTOPEN socket option to get a max backlog on its listner")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20230719212857.3943972-12-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 3e137e9a18f5..8ed52e1e3c99 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -4145,7 +4145,7 @@ int do_tcp_getsockopt(struct sock *sk, int level, break; case TCP_FASTOPEN: - val = icsk->icsk_accept_queue.fastopenq.max_qlen; + val = READ_ONCE(icsk->icsk_accept_queue.fastopenq.max_qlen); break; case TCP_FASTOPEN_CONNECT: |