diff options
author | Eric Dumazet <edumazet@google.com> | 2023-09-12 12:17:30 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-09-14 17:16:36 +0300 |
commit | 882af43a0fc37e26d85fb0df0c9edd3bed928de4 (patch) | |
tree | 285d545b88e7edfaa8c03073cad7e8f4ae1cf572 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 729549aa350c56a777bb342941ed4d69b6585769 (diff) | |
download | linux-882af43a0fc37e26d85fb0df0c9edd3bed928de4.tar.xz |
udplite: fix various data-races
udp->pcflag, udp->pcslen and udp->pcrlen reads/writes are racy.
Move udp->pcflag to udp->udp_flags for atomicity,
and add READ_ONCE()/WRITE_ONCE() annotations for pcslen and pcrlen.
Fixes: ba4e58eca8aa ("[NET]: Supporting UDP-Lite (RFC 3828) in Linux")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions