syzbot


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

Status: auto-closed as invalid on 2021/04/27 12:17
Subsystems: net
[Documentation on labels]
First crash: 1101d, last: 1101d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in bond_enslave / is_eth_port_of_netdev_filter net 5 1140d 1205d 0/26 auto-closed as invalid on 2021/03/18 23:33

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

write to 0xffff88803932b0c4 of 4 bytes by task 31203 on cpu 1:
 bond_enslave+0xa9b/0x2d40 drivers/net/bonding/bond_main.c:1783
 do_set_master net/core/rtnetlink.c:2519 [inline]
 do_setlink+0x87d/0x2280 net/core/rtnetlink.c:2715
 __rtnl_newlink net/core/rtnetlink.c:3376 [inline]
 rtnl_newlink+0xe7e/0x1310 net/core/rtnetlink.c:3491
 rtnetlink_rcv_msg+0x728/0x7c0 net/core/rtnetlink.c:5553
 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2502
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5571
 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
 netlink_unicast+0x5fc/0x6c0 net/netlink/af_netlink.c:1338
 netlink_sendmsg+0x6f8/0x7c0 net/netlink/af_netlink.c:1927
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg net/socket.c:674 [inline]
 __sys_sendto+0x2a8/0x370 net/socket.c:1977
 __do_sys_sendto net/socket.c:1989 [inline]
 __se_sys_sendto net/socket.c:1985 [inline]
 __x64_sys_sendto+0x74/0x90 net/socket.c:1985
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88803932b0c4 of 4 bytes by task 2019 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:2301
 ib_enum_all_roce_netdevs+0x94/0x100 drivers/infiniband/core/device.c:2330
 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+0x616/0xa70 kernel/workqueue.c:2421
 kthread+0x20b/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: 2019 Comm: kworker/u4:3 Tainted: G        W         5.12.0-rc4-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/03/23 12:15 upstream 84196390620a 8092f30d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in bond_enslave / is_eth_port_of_netdev_filter
* Struck through repros no longer work on HEAD.