================================================================== BUG: KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter read-write to 0xffff8881075a00c0 of 4 bytes by task 15559 on cpu 1: __dev_change_flags+0xa3/0x400 net/core/dev.c:8501 rtnl_configure_link net/core/rtnetlink.c:3260 [inline] rtnl_newlink_create net/core/rtnetlink.c:3448 [inline] __rtnl_newlink net/core/rtnetlink.c:3657 [inline] rtnl_newlink+0x114b/0x15a0 net/core/rtnetlink.c:3670 rtnetlink_rcv_msg+0x807/0x8c0 net/core/rtnetlink.c:6174 netlink_rcv_skb+0x126/0x220 net/netlink/af_netlink.c:2574 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6192 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:1942 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] ____sys_sendmsg+0x375/0x4c0 net/socket.c:2501 ___sys_sendmsg net/socket.c:2555 [inline] __sys_sendmsg+0x1e3/0x270 net/socket.c:2584 __do_sys_sendmsg net/socket.c:2593 [inline] __se_sys_sendmsg net/socket.c:2591 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2591 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 0xffff8881075a00c0 of 4 bytes by task 14454 on cpu 0: netif_is_bond_master include/linux/netdevice.h:5031 [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+0x3e6/0x750 kernel/workqueue.c:2390 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2537 kthread+0x1ac/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 value changed: 0x00001002 -> 0x0000f026 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 14454 Comm: kworker/u4:2 Not tainted 6.3.0-rc2-syzkaller-00050-g9c1bec9c0b08 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Workqueue: gid-cache-wq netdevice_event_work_handler ==================================================================