syzbot


KCSAN: data-race in bond_compute_features / is_upper_ndev_bond_master_filter

Status: auto-closed as invalid on 2020/10/25 13:58
Subsystems: net
[Documentation on labels]
First crash: 1802d, last: 1802d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in bond_compute_features / is_upper_ndev_bond_master_filter (2) net 6 3 1674d 1712d 0/29 auto-closed as invalid on 2021/03/02 13:48

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

write to 0xffff8880b2d7c22c of 4 bytes by task 19658 on cpu 1:
 bond_compute_features+0x3f0/0x430 drivers/net/bonding/bond_main.c:1304
 bond_enslave+0x296c/0x2af0 drivers/net/bonding/bond_main.c:1941
 do_set_master net/core/rtnetlink.c:2517 [inline]
 do_setlink+0x86d/0x2220 net/core/rtnetlink.c:2713
 __rtnl_newlink net/core/rtnetlink.c:3374 [inline]
 rtnl_newlink+0xe62/0x1340 net/core/rtnetlink.c:3500
 rtnetlink_rcv_msg+0x71b/0x7b0 net/core/rtnetlink.c:5563
 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2470
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5581
 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline]
 netlink_unicast+0x5e2/0x6b0 net/netlink/af_netlink.c:1330
 netlink_sendmsg+0x6d8/0x7a0 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg net/socket.c:671 [inline]
 __sys_sendto+0x2ae/0x380 net/socket.c:1992
 __do_sys_sendto net/socket.c:2004 [inline]
 __se_sys_sendto net/socket.c:2000 [inline]
 __x64_sys_sendto+0x74/0x90 net/socket.c:2000
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b2d7c22c of 4 bytes by task 21 on cpu 0:
 netif_is_bond_master include/linux/netdevice.h:4797 [inline]
 is_upper_ndev_bond_master_filter+0x63/0xb0 drivers/infiniband/core/roce_gid_mgmt.c:274
 ib_enum_roce_netdev+0x292/0x310 drivers/infiniband/core/device.c:2292
 ib_enum_all_roce_netdevs+0x94/0x100 drivers/infiniband/core/device.c:2321
 netdevice_event_work_handler+0xf8/0x200 drivers/infiniband/core/roce_gid_mgmt.c:623
 process_one_work+0x3e1/0x9a0 kernel/workqueue.c:2269
 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415
 kthread+0x20d/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 21 Comm: kworker/u4:1 Not tainted 5.9.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/09/20 13:58 upstream 325d0eab4f31 9564d2e9 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.