Thread (4 messages) flat view 4 messages, 2 authors, 2026-01-07

Re: [PATCH v2 net] net: bridge: annotate data-races around fdb->{updated,used}

From: Nikolay Aleksandrov <razor@blackwall.org>
Date: 2026-01-07 09:00:10

On 07/01/2026 10:32, Eric Dumazet wrote:
fdb->updated and fdb->used are read and written locklessly.

Add READ_ONCE()/WRITE_ONCE() annotations.

Fixes: 31cbc39b6344 ("net: bridge: add option to allow activity notifications for any fdb entries")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Nikolay Aleksandrov <razor@blackwall.org>
---
v2: annotate all problematic fdb->updated and fdb->used reads/writes.
v1: https://lore.kernel.org/netdev/CANn89iL8-e_jphcg49eX=zdWrOeuA-AJDL0qhsTrApA4YnOFEg@mail.gmail.com/T/#mf99b76469697813939abe745f42ace3e201ef6f4 (local)

  net/bridge/br_fdb.c | 28 ++++++++++++++++------------
  1 file changed, 16 insertions(+), 12 deletions(-)
+CC Ido

Oh you took care of ->used as well, even better. Thanks!
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help