================================================================== BUG: KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter read-write to 0xffff8881340bd0c0 of 4 bytes by task 6225 on cpu 0: __dev_change_flags+0xa3/0x400 net/core/dev.c:8504 rtnl_configure_link net/core/rtnetlink.c:3283 [inline] rtnl_newlink_create net/core/rtnetlink.c:3480 [inline] __rtnl_newlink net/core/rtnetlink.c:3689 [inline] rtnl_newlink+0x119e/0x1600 net/core/rtnetlink.c:3702 rtnetlink_rcv_msg+0x807/0x8c0 net/core/rtnetlink.c:6428 netlink_rcv_skb+0x126/0x220 net/netlink/af_netlink.c:2549 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6446 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:1914 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg net/socket.c:748 [inline] ____sys_sendmsg+0x37c/0x4d0 net/socket.c:2494 ___sys_sendmsg net/socket.c:2548 [inline] __sys_sendmsg+0x1e9/0x270 net/socket.c:2577 __do_sys_sendmsg net/socket.c:2586 [inline] __se_sys_sendmsg net/socket.c:2584 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2584 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 0xffff8881340bd0c0 of 4 bytes by task 18942 on cpu 1: netif_is_bond_master include/linux/netdevice.h:5048 [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+0x434/0x860 kernel/workqueue.c:2600 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2751 kthread+0x1d7/0x210 kernel/kthread.c:389 ret_from_fork+0x2e/0x40 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 value changed: 0x00001002 -> 0x0000f026 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 18942 Comm: kworker/u4:3 Tainted: G W 6.5.0-rc7-syzkaller-00013-g53663f4103ff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: gid-cache-wq netdevice_event_work_handler ==================================================================