syzbot


KCSAN: data-race in ipvlan_open / is_upper_ndev_bond_master_filter

Status: closed as invalid on 2022/01/25 17:50
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 313d, last: 313d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ipvlan_open / is_upper_ndev_bond_master_filter (3) 4 81d 139d 0/24 auto-obsoleted due to no activity on 2022/10/17 15:43
upstream KCSAN: data-race in ipvlan_open / is_upper_ndev_bond_master_filter (2) 2 277d 291d 0/24 auto-closed as invalid on 2022/04/04 18:44

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

write to 0xffff88813a2bc0c0 of 4 bytes by task 23104 on cpu 1:
 ipvlan_open+0x78/0x100
 __dev_open+0x274/0x3a0 net/core/dev.c:1407
 __dev_change_flags+0x167/0x3f0 net/core/dev.c:8139
 rtnl_configure_link+0xc2/0x150 net/core/rtnetlink.c:3150
 __rtnl_newlink net/core/rtnetlink.c:3487 [inline]
 rtnl_newlink+0xf16/0x13b0 net/core/rtnetlink.c:3527
 rtnetlink_rcv_msg+0x745/0x7e0 net/core/rtnetlink.c:5592
 netlink_rcv_skb+0x14e/0x250 net/netlink/af_netlink.c:2494
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5610
 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 0xffff88813a2bc0c0 of 4 bytes by task 25730 on cpu 0:
 netif_is_bond_master include/linux/netdevice.h:4850 [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: 0x0000f0a6 -> 0x0000f1a7

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 25730 Comm: kworker/u4:11 Not tainted 5.17.0-rc1-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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/01/23 17:52 upstream e783362eb54c 214351e1 .config log report info KCSAN: data-race in ipvlan_open / is_upper_ndev_bond_master_filter
* Struck through repros no longer work on HEAD.