]> git.baikalelectronics.ru Git - kernel.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)
commit0170602d994e872388cd35efdb3e388c3b962e66
tree8d89295bb3d1e3de62bb0a8f025d5a4ccee63a24
parentcbf9268df44cf0b79bf9ae533fc0bd364131bfb6
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