]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jul 2021 20:31:48 +0000 (13:31 -0700)
commit7887cd1cffb0308a1f14a7cc637b973fffb15244
treea1e0cabc342d266057f1523a9882efb8ea1e2cd5
parentd14058206832a83bbbe659a43bb373fb2fe4b685
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: fb46d10d8edb ("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