net/packet: annotate accesses to po->xmit
authorEric Dumazet <edumazet@google.com>
Thu, 16 Mar 2023 01:10:06 +0000 (01:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Mar 2023 08:52:05 +0000 (08:52 +0000)
commitb9d83ab8a708f23a4001d60e9d8d0b3be3d9f607
tree23a6ab230684c1a42dd59e0e146c5f035b6eade0
parentdc021e6c24e1edd809e4f109783c48e8a74b2d8c
net/packet: annotate accesses to po->xmit

po->xmit can be set from setsockopt(PACKET_QDISC_BYPASS),
while read locklessly.

Use READ_ONCE()/WRITE_ONCE() to avoid potential load/store
tearing issues.

Fixes: d346a3fae3ff ("packet: introduce PACKET_QDISC_BYPASS socket option")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c