]> git.itanic.dy.fi Git - linux-stable/commit
tcp: annotate data races around tp->mtu_info
authorEric Dumazet <edumazet@google.com>
Fri, 2 Jul 2021 20:09:03 +0000 (13:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jul 2021 09:13:45 +0000 (11:13 +0200)
commitd694db2f90ffc44b8fb9f9ae2d38edaa4aa4f444
tree0b0a3bbc3db8f5a284650924f43821e07ce58bdf
parente0355a0ad31a1d677b2a4514206de4902bd550e8
tcp: annotate data races around tp->mtu_info

commit 561022acb1ce62e50f7a8258687a21b84282a4cb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c