syzbot


KCSAN: data-race in bond_compute_features / is_eth_port_of_netdev_filter (2)

Status: auto-closed as invalid on 2021/02/11 05:34
Subsystems: net
[Documentation on labels]
First crash: 1203d, last: 1203d
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 net 1 1246d 1230d 0/26 auto-closed as invalid on 2020/12/30 23:22

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

write to 0xffff88802e8f122c of 4 bytes by task 22770 on cpu 1:
 bond_compute_features+0x424/0x460 drivers/net/bonding/bond_main.c:1303
 bond_enslave+0x29f3/0x2b80 drivers/net/bonding/bond_main.c:1966
 do_set_master net/core/rtnetlink.c:2519 [inline]
 do_setlink+0x874/0x21d0 net/core/rtnetlink.c:2715
 __rtnl_newlink net/core/rtnetlink.c:3376 [inline]
 rtnl_newlink+0xecc/0x13b0 net/core/rtnetlink.c:3502
 rtnetlink_rcv_msg+0x723/0x7c0 net/core/rtnetlink.c:5564
 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2494
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5582
 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline]
 netlink_unicast+0x5df/0x6b0 net/netlink/af_netlink.c:1330
 netlink_sendmsg+0x6f8/0x7c0 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg net/socket.c:672 [inline]
 __sys_sendto+0x2a8/0x370 net/socket.c:1975
 __do_sys_sendto net/socket.c:1987 [inline]
 __se_sys_sendto net/socket.c:1983 [inline]
 __x64_sys_sendto+0x74/0x90 net/socket.c:1983
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88802e8f122c of 4 bytes by task 1182 on cpu 0:
 is_vlan_dev include/linux/if_vlan.h:74 [inline]
 rdma_vlan_dev_real_dev include/rdma/ib_addr.h:267 [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:2287
 ib_enum_all_roce_netdevs+0x94/0x100 drivers/infiniband/core/device.c:2316
 netdevice_event_work_handler+0x192/0x200 drivers/infiniband/core/roce_gid_mgmt.c:626
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x635/0xb90 kernel/workqueue.c:2421
 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: 1182 Comm: kworker/u4:4 Not tainted 5.11.0-rc2-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
2021/01/07 05:31 upstream 71c061d24438 c104d4a3 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.