]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Sep 2021 12:21:16 +0000 (13:21 +0100)
commita9f5970767d11eadc805d5283f202612c7ba1f59
tree8d89295bb3d1e3de62bb0a8f025d5a4ccee63a24
parent103bde372f084206c6972be543ecc247ebbff9f3
net: udp: annotate data race around udp_sk(sk)->corkflag

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>
net/ipv4/udp.c
net/ipv6/udp.c