syzbot


KCSAN: data-race in br_fdb_update / br_fdb_update

Status: auto-closed as invalid on 2020/06/18 13:53
Subsystems: bridge
[Documentation on labels]
First crash: 1453d, last: 1453d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in br_fdb_update / br_fdb_update (5) bridge 2 583d 588d 0/26 auto-obsoleted due to no activity on 2022/11/05 14:29
upstream KCSAN: data-race in br_fdb_update / br_fdb_update (4) bridge 3 686d 687d 0/26 auto-closed as invalid on 2022/07/25 17:10
upstream KCSAN: data-race in br_fdb_update / br_fdb_update (2) bridge 1 1336d 1336d 0/26 auto-closed as invalid on 2020/10/13 10:41
upstream KCSAN: data-race in br_fdb_update / br_fdb_update (3) bridge 2 881d 907d 0/26 auto-closed as invalid on 2022/01/11 04:42
upstream KCSAN: data-race in br_fdb_update / br_fdb_update (6) bridge 1 545d 545d 0/26 auto-obsoleted due to no activity on 2022/12/13 11:36

Sample crash report:
bridge0: received packet on bridge_slave_1 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
==================================================================
BUG: KCSAN: data-race in br_fdb_update / br_fdb_update

write to 0xffff88811e89c288 of 8 bytes by interrupt on cpu 1:
 br_fdb_update+0x307/0x540 net/bridge/br_fdb.c:582
 br_handle_frame_finish+0x468/0xaa0 net/bridge/br_input.c:94
 br_nf_hook_thresh+0x1f7/0x210 net/bridge/br_netfilter_hooks.c:1022
 br_nf_pre_routing_finish_ipv6+0x3a6/0x4f0 net/bridge/br_netfilter_ipv6.c:206
 NF_HOOK include/linux/netfilter.h:307 [inline]
 br_nf_pre_routing_ipv6+0x23a/0x340 net/bridge/br_netfilter_ipv6.c:236
 br_nf_pre_routing+0xa54/0xcd2 net/bridge/br_netfilter_hooks.c:505
 nf_hook_entry_hookfn include/linux/netfilter.h:135 [inline]
 nf_hook_bridge_pre net/bridge/br_input.c:227 [inline]
 br_handle_frame+0x425/0x880 net/bridge/br_input.c:352
 __netif_receive_skb_core+0xd8a/0x2120 net/core/dev.c:5088
 __netif_receive_skb_one_core+0x61/0xe0 net/core/dev.c:5185
 __netif_receive_skb+0x33/0xf0 net/core/dev.c:5301
 process_backlog+0x213/0x4c0 net/core/dev.c:6133
 napi_poll net/core/dev.c:6571 [inline]
 net_rx_action+0x3ad/0xac0 net/core/dev.c:6639
 __do_softirq+0x118/0x34a kernel/softirq.c:292
 run_ksoftirqd+0x41/0x60 kernel/softirq.c:604
 smpboot_thread_fn+0x374/0x4a0 kernel/smpboot.c:165
 kthread+0x203/0x230 kernel/kthread.c:268
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

read to 0xffff88811e89c288 of 8 bytes by interrupt on cpu 0:
 br_fdb_update+0x143/0x540 net/bridge/br_fdb.c:580
 br_handle_frame_finish+0x468/0xaa0 net/bridge/br_input.c:94
 br_nf_hook_thresh+0x1f7/0x210 net/bridge/br_netfilter_hooks.c:1022
 br_nf_pre_routing_finish_ipv6+0x3a6/0x4f0 net/bridge/br_netfilter_ipv6.c:206
 NF_HOOK include/linux/netfilter.h:307 [inline]
 br_nf_pre_routing_ipv6+0x23a/0x340 net/bridge/br_netfilter_ipv6.c:236
 br_nf_pre_routing+0xa54/0xcd2 net/bridge/br_netfilter_hooks.c:505
 nf_hook_entry_hookfn include/linux/netfilter.h:135 [inline]
 nf_hook_bridge_pre net/bridge/br_input.c:227 [inline]
 br_handle_frame+0x425/0x880 net/bridge/br_input.c:352
 __netif_receive_skb_core+0xd8a/0x2120 net/core/dev.c:5088
 __netif_receive_skb_one_core+0x61/0xe0 net/core/dev.c:5185
 __netif_receive_skb+0x33/0xf0 net/core/dev.c:5301
 process_backlog+0x213/0x4c0 net/core/dev.c:6133
 napi_poll net/core/dev.c:6571 [inline]
 net_rx_action+0x3ad/0xac0 net/core/dev.c:6639
 __do_softirq+0x118/0x34a kernel/softirq.c:292
 run_ksoftirqd+0x41/0x60 kernel/softirq.c:604
 smpboot_thread_fn+0x374/0x4a0 kernel/smpboot.c:165
 kthread+0x203/0x230 kernel/kthread.c:268
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 9 Comm: ksoftirqd/0 Not tainted 5.7.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/14 05:46 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 a885920d .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.