]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 20 Sep 2021 16:49:21 +0000 (18:49 +0200)
commited5f818468a169e61169ea84399b59a82b712ba4
tree14d0d8798dd3b0a0971278e7b75742214ff3f102
parent655123dad49426d61a0f9b40007dc5ce1270e3cc
tcp: annotate data races around tp->mtu_info

BugLink: https://bugs.launchpad.net/bugs/1939442
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c