]> git.baikalelectronics.ru Git - kernel.git/commit
net/packet: annotate data race in packet_sendmsg()
authorEric Dumazet <edumazet@google.com>
Thu, 10 Jun 2021 16:00:12 +0000 (09:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jun 2021 21:12:54 +0000 (14:12 -0700)
commitd1b5bee4c8be01585033be9b3a8878789285285f
treeab9212ee4357ee19d60508de497524d1ec18b485
parentb71eaed8c04f72a919a9c44e83e4ee254e69e7f3
net/packet: annotate data race in packet_sendmsg()

There is a known race in packet_sendmsg(), addressed
in commit 32d3182cd2cd ("net/packet: fix race in tpacket_snd()")

Now we have data_race(), we can use it to avoid a future KCSAN warning,
as syzbot loves stressing af_packet sockets :)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c