syzbot


KCSAN: data-race in __dev_open / is_upper_ndev_bond_master_filter (2)

Status: auto-closed as invalid on 2022/04/12 06:09
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 269d, last: 269d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dev_open / is_upper_ndev_bond_master_filter 1 874d 874d 0/24 auto-closed as invalid on 2020/08/16 00:41

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

write to 0xffff8881442be0c0 of 4 bytes by task 10392 on cpu 0:
 __dev_open+0x2d1/0x3a0 net/core/dev.c:1414
 __dev_change_flags+0x167/0x3f0 net/core/dev.c:8139
 rtnl_configure_link+0xc2/0x150 net/core/rtnetlink.c:3152
 __rtnl_newlink net/core/rtnetlink.c:3491 [inline]
 rtnl_newlink+0xf4d/0x13e0 net/core/rtnetlink.c:3531
 rtnetlink_rcv_msg+0x745/0x7e0 net/core/rtnetlink.c:5596
 netlink_rcv_skb+0x14e/0x250 net/netlink/af_netlink.c:2494
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5614
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x602/0x6d0 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0x728/0x850 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg net/socket.c:725 [inline]
 ____sys_sendmsg+0x39a/0x510 net/socket.c:2413
 ___sys_sendmsg net/socket.c:2467 [inline]
 __sys_sendmsg+0x195/0x230 net/socket.c:2496
 __do_sys_sendmsg net/socket.c:2505 [inline]
 __se_sys_sendmsg net/socket.c:2503 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2503
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881442be0c0 of 4 bytes by task 6038 on cpu 1:
 netif_is_bond_master include/linux/netdevice.h:4851 [inline]
 is_upper_ndev_bond_master_filter+0x27/0xb0 drivers/infiniband/core/roce_gid_mgmt.c:275
 ib_enum_roce_netdev drivers/infiniband/core/device.c:2302 [inline]
 ib_enum_all_roce_netdevs+0x179/0x270 drivers/infiniband/core/device.c:2331
 netdevice_event_work_handler+0x5f/0x360 drivers/infiniband/core/roce_gid_mgmt.c:627
 process_one_work+0x3f6/0x960 kernel/workqueue.c:2307
 worker_thread+0x616/0xa70 kernel/workqueue.c:2454
 kthread+0x1bf/0x1e0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

value changed: 0x000000a2 -> 0x000001a3

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 6038 Comm: kworker/u4:28 Not tainted 5.17.0-rc7-syzkaller-00020-gea4424be1688-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: gid-cache-wq netdevice_event_work_handler
==================================================================
vhci_hcd: stop threads
vhci_hcd: release socket
vhci_hcd: disconnect device
vhci_hcd: stop threads
vhci_hcd: release socket
vhci_hcd: disconnect device
vhci_hcd: stop threads
vhci_hcd: release socket
vhci_hcd: disconnect device

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/03/08 06:05 upstream ea4424be1688 7bdd8b2c .config log report info KCSAN: data-race in __dev_open / is_upper_ndev_bond_master_filter
* Struck through repros no longer work on HEAD.