Thread (8 messages) 8 messages, 4 authors, 17h ago

Re: [PATCH bpf] bpf, sockmap: use READ_ONCE/WRITE_ONCE for saved_data_ready in the verdict path

flat view

From: Alexei Starovoitov <hidden>
Date: 2026-10-21 16:45:12
Also in: bpf

On Wed, Oct 21, 2026 at 08:56 AM Dudu Lu [off-list ref] wrote:
sk_psock_stop_strp() uses WRITE_ONCE for the same field.  sock_map_link()
/ sock_map_unref() touch the same psock from another CPU without the
lock, so KCSAN reports the race:

  BUG: KCSAN: data-race in sock_map_link / sock_map_unref
  BUG: KCSAN: data-race in sk_psock_start_verdict / sock_map_unref
sashiko is right. KCSAN will print both with this patch applied.

pw-bot: cr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help