tcp: annotate data races around tp->mtu_info
authorEric Dumazet <edumazet@google.com>
Fri, 2 Jul 2021 20:09:03 +0000 (13:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jul 2021 20:31:48 +0000 (13:31 -0700)
commit561022acb1ce62e50f7a8258687a21b84282a4cb
treea1e0cabc342d266057f1523a9882efb8ea1e2cd5
parent8955b90c3cdad199137809aac8ccbbb585355913
tcp: annotate data races around tp->mtu_info

While tp->mtu_info is read while socket is owned, the write
sides happen from err handlers (tcp_v[46]_mtu_reduced)
which only own the socket spinlock.

Fixes: 563d34d05786 ("tcp: dont drop MTU reduction indications")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c