syzbot


KCSAN: data-race in bond_compute_features / is_eth_port_of_netdev_filter

Status: auto-closed as invalid on 2020/12/30 23:22
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+bddb6b027fabc7d868b8@syzkaller.appspotmail.com
First crash: 1247d, last: 1247d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in bond_compute_features / is_eth_port_of_netdev_filter (2) net 1 1205d 1205d 0/26 auto-closed as invalid on 2021/02/11 05:34

Sample crash report:
==================================================================
BUG: KCSAN: data-race in bond_compute_features / is_eth_port_of_netdev_filter

write to 0xffff88810fc7e22c of 4 bytes by task 2991 on cpu 1:
 bond_compute_features+0x405/0x440 drivers/net/bonding/bond_main.c:1304
 __bond_release_one+0x759/0xb90 drivers/net/bonding/bond_main.c:2140
 bond_slave_netdev_event drivers/net/bonding/bond_main.c:3309 [inline]
 bond_netdev_event+0x2b3/0x670 drivers/net/bonding/bond_main.c:3420
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0x53/0xb0 kernel/notifier.c:410
 call_netdevice_notifiers_info net/core/dev.c:2035 [inline]
 call_netdevice_notifiers_extack net/core/dev.c:2047 [inline]
 call_netdevice_notifiers net/core/dev.c:2061 [inline]
 rollback_registered_many+0x876/0xe40 net/core/dev.c:9422
 unregister_netdevice_many net/core/dev.c:10626 [inline]
 default_device_exit_batch+0x250/0x3d0 net/core/dev.c:11109
 ops_exit_list net/core/net_namespace.c:190 [inline]
 cleanup_net+0x4cc/0x8a0 net/core/net_namespace.c:604
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2272
 worker_thread+0x635/0xb90 kernel/workqueue.c:2418
 kthread+0x1fd/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffff88810fc7e22c of 4 bytes by task 9430 on cpu 0:
 is_vlan_dev include/linux/if_vlan.h:74 [inline]
 rdma_vlan_dev_real_dev include/rdma/ib_addr.h:266 [inline]
 is_eth_port_of_netdev_filter+0x29/0x1a0 drivers/infiniband/core/roce_gid_mgmt.c:157
 ib_enum_roce_netdev+0x292/0x310 drivers/infiniband/core/device.c:2263
 ib_enum_all_roce_netdevs+0x94/0x100 drivers/infiniband/core/device.c:2292
 netdevice_event_work_handler+0x63/0x200 drivers/infiniband/core/roce_gid_mgmt.c:626
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2272
 worker_thread+0x635/0xb90 kernel/workqueue.c:2418
 kthread+0x1fd/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 9430 Comm: kworker/u4:2 Not tainted 5.10.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: gid-cache-wq netdevice_event_work_handler
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/25 23:21 upstream fa02fcd94b0c 3f581b43 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.