Eric Dumazet
f6c3665b6d
bonding: annotate data-races around slave->last_rx
slave->last_rx and slave->target_last_arp_rx[...] can be read and written
locklessly. Add READ_ONCE() and WRITE_ONCE() annotations.
syzbot reported:
BUG: KCSAN: data-race in bond_rcv_validate / bond_rcv_validate
write to 0xffff888149f0d428 of 8 bytes by interrupt on cpu 1:
bond_rcv_validate+0x202/0x7a0 drivers/net/bonding/bond_main.c:3335
bond_handle_frame+0xde/0x5e0 drivers/net/bonding/bond_main.c:1533
__netif_receive_skb_core+0x5b1/0x1950 net/core/dev.c:6039
__netif_receive_skb_one_core net/core/dev.c:6150 [inline]
__netif_receive_skb+0x59/0x270 net/core/dev.c:6265
netif_receive_skb_internal net/core/dev.c:6351 [inline]
netif_receive_skb+0x4b/0x2d0 net/core/dev.c:6410
...
write to 0xffff888149f0d428 of 8 bytes by interrupt on cpu 0:
bond_rcv_validate+0x202/0x7a0 drivers/net/bonding/bond_main.c:3335
bond_handle_frame+0xde/0x5e0 drivers/net/bonding/bond_main.c:1533
__netif_receive_skb_core+0x5b1/0x1950 net/core/dev.c:6039
__netif_receive_skb_one_core net/core/dev.c:6150 [inline]
__netif_receive_skb+0x59/0x270 net/core/dev.c:6265
netif_receive_skb_internal net/core/dev.c:6351 [inline]
netif_receive_skb+0x4b/0x2d0 net/core/dev.c:6410
br_netif_receive_skb net/bridge/br_input.c:30 [inline]
NF_HOOK include/linux/netfilter.h:318 [inline]
...
value changed: 0x0000000100005365 -> 0x0000000100005366
Fixes: f5b2b966f0 ("[PATCH] bonding: Validate probe replies in ARP monitor")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Link: https://patch.msgid.link/20260122162914.2299312-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-01-23 13:55:56 -08:00
..
2025-11-03 16:49:53 +09:00
2025-12-01 16:21:16 -05:00
2025-10-29 20:04:55 -07:00
2025-12-01 13:53:53 -08:00
2025-12-15 15:02:44 +01:00
2025-11-20 17:44:23 -08:00
2025-09-03 17:02:12 -07:00
2025-09-04 10:19:17 +02:00
2025-11-07 18:53:57 -08:00
2025-11-14 18:00:34 -08:00
2025-08-28 16:46:23 -07:00
2025-09-02 15:52:24 -07:00
2025-11-03 17:40:46 -08:00
2025-07-08 18:05:25 -07:00
2025-09-09 10:56:02 +02:00
2025-09-09 10:56:02 +02:00
2026-01-23 13:55:56 -08:00
2026-01-20 10:02:01 +01:00
2025-09-14 11:55:04 -07:00
2025-11-20 19:01:22 -08:00
2026-01-13 10:12:11 +01:00
2025-12-23 10:32:08 +01:00
2025-09-14 14:28:12 -07:00
2025-08-29 19:36:31 -07:00
2025-08-26 17:34:31 -07:00
2025-09-03 15:16:49 -07:00
2025-11-14 18:00:08 -08:00
2026-01-13 10:12:11 +01:00
2025-09-11 12:22:38 +02:00
2025-10-30 08:38:51 +01:00
2025-09-22 11:38:43 -07:00
2025-11-04 19:10:33 -08:00
2025-11-25 19:28:29 -08:00
2025-08-26 17:34:31 -07:00
2025-12-10 01:15:27 -08:00
2025-09-23 10:12:15 +02:00
2025-10-27 18:04:59 -07:00
2025-09-23 10:12:15 +02:00
2025-09-18 10:17:09 +02:00
2025-08-26 17:34:31 -07:00
2026-01-08 18:02:35 -08:00
2025-08-13 08:34:33 +02:00
2025-11-04 19:10:33 -08:00
2025-12-10 01:15:27 -08:00
2025-11-04 19:10:33 -08:00
2025-11-04 19:10:33 -08:00
2025-08-13 18:18:33 -07:00
2025-11-10 10:38:37 +01:00
2025-07-15 12:08:39 +02:00
2025-07-10 15:27:32 -07:00
2025-10-24 17:57:20 -07:00
2025-09-29 11:20:29 -07:00
2025-09-04 10:19:17 +02:00
2025-10-28 17:41:46 -07:00
2025-10-20 17:13:40 -07:00
2025-11-04 19:10:33 -08:00
2025-11-24 18:53:14 -08:00
2025-11-25 16:10:32 +01:00
2025-10-16 12:04:47 -07:00
2025-09-18 12:32:06 +02:00
2025-09-14 11:35:17 -07:00
2025-11-07 18:05:25 -08:00
2025-08-27 07:43:08 -07:00
2025-08-29 19:36:32 -07:00
2025-09-03 15:08:20 -07:00
2025-11-25 16:10:32 +01:00
2025-08-26 18:11:29 -07:00
2025-11-06 13:38:11 +01:00
2025-11-10 11:19:41 -08:00
2025-09-08 18:06:21 -07:00
2025-12-05 13:52:43 -08:00
2025-09-11 19:05:56 -07:00
2025-09-18 08:47:52 +02:00
2025-11-14 18:00:08 -08:00
2025-07-11 11:00:57 -07:00
2025-08-25 17:53:35 -07:00
2025-10-31 06:46:03 -07:00
2025-11-04 19:10:33 -08:00
2025-11-04 19:10:32 -08:00
2025-07-14 17:19:13 -07:00
2025-11-06 16:46:11 -08:00
2025-11-11 10:21:08 +01:00
2025-09-24 10:22:37 -07:00
2025-10-30 11:52:31 +01:00
2025-11-04 16:10:53 +01:00