]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Oct 2021 13:42:37 +0000 (15:42 +0200)
commitf9a6b3dfc8766b918fcdb819e0bd2be60e018c92
treea825158a0f6bae5b8d07abe722d74020f60d475d
parent21840d3f82710b841f6c684bf67e810c734c20ec
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