]> 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)
commitb82b8b5bd6b8bebf305ee68345ca972262a29a41
treea1e0cabc342d266057f1523a9882efb8ea1e2cd5
parent679bbb31bfff19ac8c20901be260e23919950ddf
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: 26ef99d7a34d ("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