Skip to content
Commit ad91e20d authored by Eric Dumazet's avatar Eric Dumazet Committed by Sasha Levin
Browse files

net/packet: annotate data race in packet_sendmsg()

[ Upstream commit d1b5bee4 ]

There is a known race in packet_sendmsg(), addressed
in commit 32d3182c

 ("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: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 231504bd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment