================================================================== BUG: KCSAN: data-race in __dev_open / is_upper_ndev_bond_master_filter read-write to 0xffff8881169fc0b0 of 4 bytes by task 7731 on cpu 0: __dev_open+0x24b/0x2e0 net/core/dev.c:1513 __dev_change_flags+0x155/0x410 net/core/dev.c:8968 rtnl_configure_link net/core/rtnetlink.c:3542 [inline] rtnl_newlink_create+0x2ac/0x5d0 net/core/rtnetlink.c:3794 __rtnl_newlink net/core/rtnetlink.c:3897 [inline] rtnl_newlink+0xe9f/0x1250 net/core/rtnetlink.c:4012 rtnetlink_rcv_msg+0x651/0x710 net/core/rtnetlink.c:6922 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2542 rtnetlink_rcv+0x1c/0x30 net/core/rtnetlink.c:6949 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline] netlink_unicast+0x599/0x670 net/netlink/af_netlink.c:1347 netlink_sendmsg+0x5cc/0x6e0 net/netlink/af_netlink.c:1891 sock_sendmsg_nosec net/socket.c:711 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:726 ____sys_sendmsg+0x312/0x410 net/socket.c:2583 ___sys_sendmsg net/socket.c:2637 [inline] __sys_sendmsg+0x19d/0x230 net/socket.c:2669 __do_sys_sendmsg net/socket.c:2674 [inline] __se_sys_sendmsg net/socket.c:2672 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2672 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 0xffff8881169fc0b0 of 4 bytes by task 4268 on cpu 1: netif_is_bond_master include/linux/netdevice.h:5153 [inline] is_upper_ndev_bond_master_filter+0x2b/0xb0 drivers/infiniband/core/roce_gid_mgmt.c:275 ib_enum_roce_netdev+0x124/0x1d0 drivers/infiniband/core/device.c:2355 ib_enum_all_roce_netdevs+0x8a/0x100 drivers/infiniband/core/device.c:2382 netdevice_event_work_handler+0x67/0x3c0 drivers/infiniband/core/roce_gid_mgmt.c:648 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3317 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3398 kthread+0x1d1/0x210 kernel/kthread.c:389 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 value changed: 0x0000f0a6 -> 0x0000f1a7 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 4268 Comm: kworker/u8:9 Not tainted 6.13.0-rc7-syzkaller-00043-g619f0b6fad52 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: gid-cache-wq netdevice_event_work_handler ==================================================================