syzbot


KCSAN: data-race in ipvlan_open / is_ndev_for_default_gid_filter (2)

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

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

read-write to 0xffff88815c4a00a0 of 4 bytes by task 28066 on cpu 1:
 ipvlan_open+0x6f/0xe0
 __dev_open+0x281/0x3a0 net/core/dev.c:1446
 __dev_change_flags+0x153/0x400 net/core/dev.c:8648
 rtnl_configure_link net/core/rtnetlink.c:3326 [inline]
 rtnl_newlink_create net/core/rtnetlink.c:3523 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3735 [inline]
 rtnl_newlink+0x120c/0x1670 net/core/rtnetlink.c:3748
 rtnetlink_rcv_msg+0x80a/0x8c0 net/core/rtnetlink.c:6615
 netlink_rcv_skb+0x126/0x220 net/netlink/af_netlink.c:2543
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6633
 netlink_unicast_kernel net/netlink/af_netlink.c:1341 [inline]
 netlink_unicast+0x589/0x650 net/netlink/af_netlink.c:1367
 netlink_sendmsg+0x66e/0x770 net/netlink/af_netlink.c:1908
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg net/socket.c:745 [inline]
 ____sys_sendmsg+0x37c/0x4d0 net/socket.c:2584
 ___sys_sendmsg net/socket.c:2638 [inline]
 __sys_sendmsg+0x1e9/0x270 net/socket.c:2667
 __do_sys_sendmsg net/socket.c:2676 [inline]
 __se_sys_sendmsg net/socket.c:2674 [inline]
 __x64_sys_sendmsg+0x46/0x50 net/socket.c:2674
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff88815c4a00a0 of 4 bytes by task 6111 on cpu 0:
 netif_is_bond_master include/linux/netdevice.h:5127 [inline]
 is_ndev_for_default_gid_filter+0x37/0x130 drivers/infiniband/core/roce_gid_mgmt.c:220
 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 kernel/workqueue.c:2633 [inline]
 process_scheduled_works+0x5b8/0xa30 kernel/workqueue.c:2706
 worker_thread+0x525/0x730 kernel/workqueue.c:2787
 kthread+0x1d7/0x210 kernel/kthread.c:388
 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242

value changed: 0x00000082 -> 0x00000283

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 6111 Comm: kworker/u4:31 Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/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
2024/01/14 16:02 upstream 052d534373b7 551587c1 .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.