net: udp: annotate data race around udp_sk(sk)->corkflag
authorEric Dumazet <edumazet@google.com>
Tue, 28 Sep 2021 00:29:24 +0000 (17:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Oct 2021 13:05:09 +0000 (15:05 +0200)
commitdfe1064adf369e913cf709437676ab20768de804
tree9d3a1e09f4a7362a0d810428edf0555c5207a16a
parent7362dd8a9bd9238981639ca225055f00b82dd228
net: udp: annotate data race around udp_sk(sk)->corkflag

commit a9f5970767d11eadc805d5283f202612c7ba1f59 upstream.

up->corkflag field can be read or written without any lock.
Annotate accesses to avoid possible syzbot/KCSAN reports.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
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/udp.c
net/ipv6/udp.c