syzbot


KCSAN: data-race in ipvlan_open / is_upper_ndev_bond_master_filter (5)

Status: closed as invalid on 2023/06/28 10:35
Subsystems: net
[Documentation on labels]
First crash: 318d, last: 318d
Similar bugs (5)
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 (4) net 1 424d 424d 0/26 auto-obsoleted due to no activity on 2023/04/16 13:59
upstream KCSAN: data-race in ipvlan_open / is_upper_ndev_bond_master_filter (3) net 4 597d 655d 0/26 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 (6) net 1 222d 222d 0/26 auto-obsoleted due to no activity on 2023/10/27 23:12
upstream KCSAN: data-race in ipvlan_open / is_upper_ndev_bond_master_filter (2) net 2 793d 807d 0/26 auto-closed as invalid on 2022/04/04 18:44
upstream KCSAN: data-race in ipvlan_open / is_upper_ndev_bond_master_filter net 1 829d 829d 0/26 closed as invalid on 2022/01/25 17:50

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

read-write to 0xffff8881477610c0 of 4 bytes by task 13657 on cpu 1:
 ipvlan_open+0x6f/0xe0
 __dev_open+0x281/0x3a0 net/core/dev.c:1415
 __dev_change_flags+0x159/0x400 net/core/dev.c:8568
 rtnl_configure_link net/core/rtnetlink.c:3279 [inline]
 rtnl_newlink_create net/core/rtnetlink.c:3473 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3682 [inline]
 rtnl_newlink+0x114b/0x15a0 net/core/rtnetlink.c:3695
 rtnetlink_rcv_msg+0x807/0x8c0 net/core/rtnetlink.c:6417
 netlink_rcv_skb+0x126/0x220 net/netlink/af_netlink.c:2546
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6435
 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
 netlink_unicast+0x56f/0x640 net/netlink/af_netlink.c:1365
 netlink_sendmsg+0x665/0x770 net/netlink/af_netlink.c:1913
 sock_sendmsg_nosec net/socket.c:724 [inline]
 sock_sendmsg net/socket.c:747 [inline]
 ____sys_sendmsg+0x375/0x4c0 net/socket.c:2503
 ___sys_sendmsg net/socket.c:2557 [inline]
 __sys_sendmsg+0x1e3/0x270 net/socket.c:2586
 __do_sys_sendmsg net/socket.c:2595 [inline]
 __se_sys_sendmsg net/socket.c:2593 [inline]
 __x64_sys_sendmsg+0x46/0x50 net/socket.c:2593
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff8881477610c0 of 4 bytes by task 9 on cpu 0:
 netif_is_bond_master include/linux/netdevice.h:5068 [inline]
 is_upper_ndev_bond_master_filter+0x2b/0xb0 drivers/infiniband/core/roce_gid_mgmt.c:275
 ib_enum_roce_netdev+0x120/0x1c0 drivers/infiniband/core/device.c:2305
 ib_enum_all_roce_netdevs+0x8a/0xf0 drivers/infiniband/core/device.c:2334
 netdevice_event_work_handler+0x15b/0x3c0 drivers/infiniband/core/roce_gid_mgmt.c:627
 process_one_work+0x3e6/0x750 kernel/workqueue.c:2405
 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2552
 kthread+0x1d7/0x210 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

value changed: 0x00000002 -> 0x00000083

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 9 Comm: kworker/u4:0 Not tainted 6.4.0-rc6-syzkaller-00279-g8c1f0c38b310 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
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
2023/06/18 23:21 upstream 8c1f0c38b310 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ipvlan_open / is_upper_ndev_bond_master_filter
* Struck through repros no longer work on HEAD.