syzbot


KCSAN: data-race in ipvlan_open / is_ndev_for_default_gid_filter

Status: auto-obsoleted due to no activity on 2023/04/06 08:37
Subsystems: net
[Documentation on labels]
First crash: 733d, last: 733d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ipvlan_open / is_ndev_for_default_gid_filter (2) net 1 380d 380d 0/28 auto-obsoleted due to no activity on 2024/02/18 16:05

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

read-write to 0xffff888148b710c0 of 4 bytes by task 18193 on cpu 1:
 ipvlan_open+0x6d/0xf0
 __dev_open+0x275/0x390 net/core/dev.c:1417
 __dev_change_flags+0x14f/0x3f0 net/core/dev.c:8530
 rtnl_configure_link net/core/rtnetlink.c:3231 [inline]
 rtnl_newlink_create net/core/rtnetlink.c:3415 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3624 [inline]
 rtnl_newlink+0x1296/0x16f0 net/core/rtnetlink.c:3637
 rtnetlink_rcv_msg+0x811/0x8d0 net/core/rtnetlink.c:6141
 netlink_rcv_skb+0x13e/0x250 net/netlink/af_netlink.c:2564
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:6159
 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
 netlink_unicast+0x58a/0x660 net/netlink/af_netlink.c:1356
 netlink_sendmsg+0x666/0x760 net/netlink/af_netlink.c:1932
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0x38f/0x500 net/socket.c:2476
 ___sys_sendmsg net/socket.c:2530 [inline]
 __sys_sendmsg+0x19a/0x230 net/socket.c:2559
 __do_sys_sendmsg net/socket.c:2568 [inline]
 __se_sys_sendmsg net/socket.c:2566 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2566
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888148b710c0 of 4 bytes by task 23926 on cpu 0:
 netif_is_bond_master include/linux/netdevice.h:5015 [inline]
 is_ndev_for_default_gid_filter+0x33/0x130 drivers/infiniband/core/roce_gid_mgmt.c:220
 ib_enum_roce_netdev+0x12e/0x1e0 drivers/infiniband/core/device.c:2305
 ib_enum_all_roce_netdevs+0xa4/0x110 drivers/infiniband/core/device.c:2334
 netdevice_event_work_handler+0x157/0x3c0 drivers/infiniband/core/roce_gid_mgmt.c:627
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 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: 23926 Comm: kworker/u4:26 Not tainted 6.2.0-rc5-syzkaller-00047-g7c46948a6e9c-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/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/01/26 08:11 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ipvlan_open / is_ndev_for_default_gid_filter
* Struck through repros no longer work on HEAD.