syzbot


KCSAN: data-race in __dev_change_flags / is_ndev_for_default_gid_filter (4)

Status: auto-obsoleted due to no activity on 2025/05/15 22:26
Subsystems: net
[Documentation on labels]
First crash: 129d, last: 78d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dev_change_flags / is_ndev_for_default_gid_filter net 1 916d 916d 0/28 auto-obsoleted due to no activity on 2023/01/13 20:31
upstream KCSAN: data-race in __dev_change_flags / is_ndev_for_default_gid_filter (3) net 1 423d 423d 0/28 auto-obsoleted due to no activity on 2024/05/15 02:59
upstream KCSAN: data-race in __dev_change_flags / is_ndev_for_default_gid_filter (2) net 1 690d 690d 0/28 auto-obsoleted due to no activity on 2023/08/21 12:02

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

read-write to 0xffff88811d8160b0 of 4 bytes by task 27346 on cpu 0:
 __dev_change_flags+0x9a/0x410 net/core/dev.c:9231
 dev_change_flags+0x59/0xd0 net/core/dev.c:9329
 do_setlink+0x7a1/0x2370 net/core/rtnetlink.c:3118
 rtnl_changelink net/core/rtnetlink.c:3733 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3885 [inline]
 rtnl_newlink+0xde9/0x1250 net/core/rtnetlink.c:4022
 rtnetlink_rcv_msg+0x651/0x710 net/core/rtnetlink.c:6912
 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2533
 rtnetlink_rcv+0x1c/0x30 net/core/rtnetlink.c:6939
 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
 netlink_unicast+0x599/0x670 net/netlink/af_netlink.c:1338
 netlink_sendmsg+0x5cc/0x6e0 net/netlink/af_netlink.c:1882
 sock_sendmsg_nosec net/socket.c:718 [inline]
 __sock_sendmsg+0x140/0x180 net/socket.c:733
 ____sys_sendmsg+0x326/0x4b0 net/socket.c:2573
 ___sys_sendmsg net/socket.c:2627 [inline]
 __sys_sendmsg+0x19d/0x230 net/socket.c:2659
 __do_sys_sendmsg net/socket.c:2664 [inline]
 __se_sys_sendmsg net/socket.c:2662 [inline]
 __x64_sys_sendmsg+0x46/0x50 net/socket.c:2662
 x64_sys_call+0x2734/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:47
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88811d8160b0 of 4 bytes by task 8979 on cpu 1:
 netif_is_bond_master include/linux/netdevice.h:5302 [inline]
 is_ndev_for_default_gid_filter+0x37/0x130 drivers/infiniband/core/roce_gid_mgmt.c:220
 ib_enum_roce_netdev+0x125/0x1d0 drivers/infiniband/core/device.c:2365
 ib_enum_all_roce_netdevs+0x8a/0x100 drivers/infiniband/core/device.c:2392
 netdevice_event_work_handler+0x15b/0x3c0 drivers/infiniband/core/roce_gid_mgmt.c:648
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0x4db/0xa20 kernel/workqueue.c:3319
 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3400
 kthread+0x4ae/0x520 kernel/kthread.c:464
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

value changed: 0x0000e323 -> 0x0000f3a3

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 8979 Comm: kworker/u8:8 Tainted: G        W          6.14.0-rc7-syzkaller-00137-g5fc319360819 #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Workqueue: gid-cache-wq netdevice_event_work_handler
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/20 22:19 upstream 5fc319360819 62330552 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_ndev_for_default_gid_filter
2025/01/28 14:33 upstream 6d61a53dd6f5 f5427d7c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_ndev_for_default_gid_filter
* Struck through repros no longer work on HEAD.