================================================================== BUG: KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter write to 0xffff8881500550c0 of 4 bytes by task 4725 on cpu 1: __dev_change_flags+0xa1/0x3f0 net/core/dev.c:8767 rtnl_configure_link+0xc2/0x150 net/core/rtnetlink.c:3131 __rtnl_newlink net/core/rtnetlink.c:3466 [inline] rtnl_newlink+0xf16/0x13b0 net/core/rtnetlink.c:3506 rtnetlink_rcv_msg+0x745/0x7e0 net/core/rtnetlink.c:5571 netlink_rcv_skb+0x14e/0x250 net/netlink/af_netlink.c:2491 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5589 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x5fc/0x6c0 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x6e1/0x7d0 net/netlink/af_netlink.c:1916 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] ____sys_sendmsg+0x39a/0x510 net/socket.c:2409 ___sys_sendmsg net/socket.c:2463 [inline] __sys_sendmsg+0x195/0x230 net/socket.c:2492 __do_sys_sendmsg net/socket.c:2501 [inline] __se_sys_sendmsg net/socket.c:2499 [inline] __x64_sys_sendmsg+0x42/0x50 net/socket.c:2499 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff8881500550c0 of 4 bytes by task 5931 on cpu 0: netif_is_bond_master include/linux/netdevice.h:5140 [inline] is_upper_ndev_bond_master_filter+0x27/0xb0 drivers/infiniband/core/roce_gid_mgmt.c:275 ib_enum_roce_netdev drivers/infiniband/core/device.c:2302 [inline] ib_enum_all_roce_netdevs+0x179/0x270 drivers/infiniband/core/device.c:2331 netdevice_event_work_handler+0x5f/0x360 drivers/infiniband/core/roce_gid_mgmt.c:627 process_one_work+0x3fc/0x980 kernel/workqueue.c:2298 worker_thread+0x616/0xa70 kernel/workqueue.c:2445 kthread+0x2c7/0x2e0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 value changed: 0x00001002 -> 0x00000006 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 5931 Comm: kworker/u4:12 Tainted: G W 5.16.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: gid-cache-wq netdevice_event_work_handler ==================================================================