iwpm_register_pid: Unable to send a nlmsg (client = 2) infiniband syz1: RDMA CMA: cma_listen_on_dev, error -98 netlink: 'syz-executor036': attribute type 1 has an invalid length. 8021q: adding VLAN 0 to HW filter on device bond1 bond1: (slave gretap1): making interface the new active one ====================================================== WARNING: possible circular locking dependency detected 5.6.0-rc3-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor036/9110 is trying to acquire lock: ffffffff89543120 (lock#3){+.+.}, at: cma_netdev_callback+0xfd/0x590 drivers/infiniband/core/cma.c:4605 but task is already holding lock: ffffffff89590da0 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] ffffffff89590da0 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x83c/0xd40 net/core/rtnetlink.c:5433 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (rtnl_mutex){+.+.}: lock_acquire+0x154/0x250 kernel/locking/lockdep.c:4484 __mutex_lock_common+0x16e/0x2f30 kernel/locking/mutex.c:956 __mutex_lock kernel/locking/mutex.c:1103 [inline] mutex_lock_nested+0x1b/0x30 kernel/locking/mutex.c:1118 rtnl_lock+0x17/0x20 net/core/rtnetlink.c:72 siw_create_listen+0x93a/0xdb0 drivers/infiniband/sw/siw/siw_cm.c:1951 iw_cm_listen+0x3c9/0x4a0 drivers/infiniband/core/iwcm.c:582 cma_iw_listen drivers/infiniband/core/cma.c:2450 [inline] rdma_listen+0x698/0x9a0 drivers/infiniband/core/cma.c:3614 cma_listen_on_dev+0x678/0x8e0 drivers/infiniband/core/cma.c:2501 cma_add_one+0x5ef/0x6f0 drivers/infiniband/core/cma.c:4666 add_client_context+0x482/0x660 drivers/infiniband/core/device.c:681 enable_device_and_get+0x15b/0x370 drivers/infiniband/core/device.c:1316 ib_register_device+0x124d/0x15b0 drivers/infiniband/core/device.c:1382 siw_device_register drivers/infiniband/sw/siw/siw_main.c:70 [inline] siw_newlink+0xab9/0xfb0 drivers/infiniband/sw/siw/siw_main.c:565 nldev_newlink+0x403/0x4a0 drivers/infiniband/core/nldev.c:1538 rdma_nl_rcv_msg drivers/infiniband/core/netlink.c:195 [inline] rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline] rdma_nl_rcv+0x701/0xa20 drivers/infiniband/core/netlink.c:259 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x766/0x920 net/netlink/af_netlink.c:1329 netlink_sendmsg+0xa2b/0xd40 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] ____sys_sendmsg+0x4f7/0x7f0 net/socket.c:2343 ___sys_sendmsg net/socket.c:2397 [inline] __sys_sendmsg+0x1ed/0x290 net/socket.c:2430 __do_sys_sendmsg net/socket.c:2439 [inline] __se_sys_sendmsg net/socket.c:2437 [inline] __x64_sys_sendmsg+0x7f/0x90 net/socket.c:2437 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 (lock#3){+.+.}: check_prev_add kernel/locking/lockdep.c:2475 [inline] check_prevs_add kernel/locking/lockdep.c:2580 [inline] validate_chain+0x1507/0x7be0 kernel/locking/lockdep.c:2970 __lock_acquire+0xc5a/0x1bc0 kernel/locking/lockdep.c:3954 lock_acquire+0x154/0x250 kernel/locking/lockdep.c:4484 __mutex_lock_common+0x16e/0x2f30 kernel/locking/mutex.c:956 __mutex_lock kernel/locking/mutex.c:1103 [inline] mutex_lock_nested+0x1b/0x30 kernel/locking/mutex.c:1118 cma_netdev_callback+0xfd/0x590 drivers/infiniband/core/cma.c:4605 notifier_call_chain kernel/notifier.c:83 [inline] __raw_notifier_call_chain kernel/notifier.c:361 [inline] raw_notifier_call_chain+0xe3/0x190 kernel/notifier.c:368 call_netdevice_notifiers_info net/core/dev.c:1948 [inline] call_netdevice_notifiers_extack net/core/dev.c:1960 [inline] call_netdevice_notifiers+0xf6/0x150 net/core/dev.c:1974 bond_change_active_slave+0x1f32/0x2b20 drivers/net/bonding/bond_main.c:944 bond_select_active_slave+0x584/0xa80 drivers/net/bonding/bond_main.c:986 bond_enslave+0x42af/0x59c0 drivers/net/bonding/bond_main.c:1823 do_set_master net/core/rtnetlink.c:2468 [inline] __rtnl_newlink net/core/rtnetlink.c:3346 [inline] rtnl_newlink+0x182f/0x1c00 net/core/rtnetlink.c:3377 rtnetlink_rcv_msg+0x889/0xd40 net/core/rtnetlink.c:5436 netlink_rcv_skb+0x19e/0x3e0 net/netlink/af_netlink.c:2478 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5454 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x766/0x920 net/netlink/af_netlink.c:1329 netlink_sendmsg+0xa2b/0xd40 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] ____sys_sendmsg+0x4f7/0x7f0 net/socket.c:2343 ___sys_sendmsg net/socket.c:2397 [inline] __sys_sendmsg+0x1ed/0x290 net/socket.c:2430 __do_sys_sendmsg net/socket.c:2439 [inline] __se_sys_sendmsg net/socket.c:2437 [inline] __x64_sys_sendmsg+0x7f/0x90 net/socket.c:2437 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(rtnl_mutex); lock(lock#3); lock(rtnl_mutex); lock(lock#3); *** DEADLOCK *** 1 lock held by syz-executor036/9110: #0: ffffffff89590da0 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff89590da0 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x83c/0xd40 net/core/rtnetlink.c:5433 stack backtrace: CPU: 1 PID: 9110 Comm: syz-executor036 Not tainted 5.6.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fb/0x318 lib/dump_stack.c:118 print_circular_bug+0xc3f/0xe70 kernel/locking/lockdep.c:1684 check_noncircular+0x206/0x3a0 kernel/locking/lockdep.c:1808 check_prev_add kernel/locking/lockdep.c:2475 [inline] check_prevs_add kernel/locking/lockdep.c:2580 [inline] validate_chain+0x1507/0x7be0 kernel/locking/lockdep.c:2970 __lock_acquire+0xc5a/0x1bc0 kernel/locking/lockdep.c:3954 lock_acquire+0x154/0x250 kernel/locking/lockdep.c:4484 __mutex_lock_common+0x16e/0x2f30 kernel/locking/mutex.c:956 __mutex_lock kernel/locking/mutex.c:1103 [inline] mutex_lock_nested+0x1b/0x30 kernel/locking/mutex.c:1118 cma_netdev_callback+0xfd/0x590 drivers/infiniband/core/cma.c:4605 notifier_call_chain kernel/notifier.c:83 [inline] __raw_notifier_call_chain kernel/notifier.c:361 [inline] raw_notifier_call_chain+0xe3/0x190 kernel/notifier.c:368 call_netdevice_notifiers_info net/core/dev.c:1948 [inline] call_netdevice_notifiers_extack net/core/dev.c:1960 [inline] call_netdevice_notifiers+0xf6/0x150 net/core/dev.c:1974 bond_change_active_slave+0x1f32/0x2b20 drivers/net/bonding/bond_main.c:944 bond_select_active_slave+0x584/0xa80 drivers/net/bonding/bond_main.c:986 bond_enslave+0x42af/0x59c0 drivers/net/bonding/bond_main.c:1823 do_set_master net/core/rtnetlink.c:2468 [inline] __rtnl_newlink net/core/rtnetlink.c:3346 [inline] rtnl_newlink+0x182f/0x1c00 net/core/rtnetlink.c:3377 rtnetlink_rcv_msg+0x889/0xd40 net/core/rtnetlink.c:5436 netlink_rcv_skb+0x19e/0x3e0 net/netlink/af_netlink.c:2478 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5454 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x766/0x920 net/netlink/af_netlink.c:1329 netlink_sendmsg+0xa2b/0xd40 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] ____sys_sendmsg+0x4f7/0x7f0 net/socket.c:2343 ___sys_sendmsg net/socket.c:2397 [inline] __sys_sendmsg+0x1ed/0x290 net/socket.c:2430 __do_sys_sendmsg net/socket.c:2439 [inline] __se_sys_sendmsg net/socket.c:2437 [inline] __x64_sys_sendmsg+0x7f/0x90 net/socket.c:2437 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x440509 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffc21dab118 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440509 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000004 RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8