]> 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)
commit8a8ae8028715f15fb2ce69c5f9a86c29c6011211
tree8d89295bb3d1e3de62bb0a8f025d5a4ccee63a24
parent5033bd856835f334ca8ca084b6d0215230ca1d22
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