================================================================== BUG: KCSAN: data-race in bond_enslave / is_ndev_for_default_gid_filter read-write to 0xffff88801371a228 of 4 bytes by task 32691 on cpu 0: bond_enslave+0x9e7/0x2b80 drivers/net/bonding/bond_main.c:1750 do_set_master net/core/rtnetlink.c:2517 [inline] do_setlink+0x871/0x21d0 net/core/rtnetlink.c:2713 __rtnl_newlink net/core/rtnetlink.c:3374 [inline] rtnl_newlink+0xec9/0x13a0 net/core/rtnetlink.c:3500 rtnetlink_rcv_msg+0x723/0x7c0 net/core/rtnetlink.c:5562 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2494 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5580 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline] netlink_unicast+0x5df/0x6b0 net/netlink/af_netlink.c:1330 netlink_sendmsg+0x6f8/0x7c0 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg net/socket.c:671 [inline] __sys_sendto+0x2ae/0x380 net/socket.c:1992 __do_sys_sendto net/socket.c:2004 [inline] __se_sys_sendto net/socket.c:2000 [inline] __x64_sys_sendto+0x74/0x90 net/socket.c:2000 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88801371a228 of 4 bytes by task 29032 on cpu 1: netif_is_bond_master include/linux/netdevice.h:4888 [inline] is_ndev_for_default_gid_filter+0x33/0x130 drivers/infiniband/core/roce_gid_mgmt.c:219 ib_enum_roce_netdev+0x292/0x310 drivers/infiniband/core/device.c:2263 ib_enum_all_roce_netdevs+0x94/0x100 drivers/infiniband/core/device.c:2292 netdevice_event_work_handler+0xf8/0x200 drivers/infiniband/core/roce_gid_mgmt.c:626 process_one_work+0x3e1/0x950 kernel/workqueue.c:2272 worker_thread+0x635/0xb90 kernel/workqueue.c:2418 kthread+0x1fd/0x220 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 29032 Comm: kworker/u4:6 Not tainted 5.10.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: gid-cache-wq netdevice_event_work_handler ==================================================================