infiniband syz1: set active infiniband syz1: added vxcan1 RDS/IB: syz1: added smc: adding ib device syz1 with port count 1 BUG: sleeping function called from invalid context at kernel/locking/mutex.c:577 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 23063, name: syz-executor.3 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 6 locks held by syz-executor.3/23063: #0: ffffffff91032638 (&rdma_nl_types[idx].sem){.+.+}-{3:3}, at: rdma_nl_rcv_msg drivers/infiniband/core/netlink.c:164 [inline] #0: ffffffff91032638 (&rdma_nl_types[idx].sem){.+.+}-{3:3}, at: rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline] #0: ffffffff91032638 (&rdma_nl_types[idx].sem){.+.+}-{3:3}, at: rdma_nl_rcv+0x33a/0xa30 drivers/infiniband/core/netlink.c:259 #1: ffffffff8d9993f0 (link_ops_rwsem){++++}-{3:3}, at: nldev_newlink+0x3f6/0x660 drivers/infiniband/core/nldev.c:1707 #2: ffffffff8d98c170 (devices_rwsem){++++}-{3:3}, at: enable_device_and_get+0x128/0x480 drivers/infiniband/core/device.c:1321 #3: ffffffff8d98c470 (clients_rwsem){++++}-{3:3}, at: enable_device_and_get+0x18d/0x480 drivers/infiniband/core/device.c:1329 #4: ffff88801e5945c0 (&device->client_data_rwsem){++++}-{3:3}, at: add_client_context+0x4ba/0x830 drivers/infiniband/core/device.c:718 #5: ffff8880234ab318 (&pnettable->lock){++++}-{2:2}, at: smc_pnetid_by_table_ib+0x7e/0x230 net/smc/smc_pnet.c:1159 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 23063 Comm: syz-executor.3 Not tainted 5.17.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x201/0x2d8 lib/dump_stack.c:106 __might_resched+0x5ce/0x790 kernel/sched/core.c:9585 __mutex_lock_common+0xd2/0x2590 kernel/locking/mutex.c:577 __mutex_lock kernel/locking/mutex.c:733 [inline] mutex_lock_nested+0x1a/0x20 kernel/locking/mutex.c:785 smc_pnet_apply_ib+0x25/0x190 net/smc/smc_pnet.c:251 smc_pnetid_by_table_ib+0x1ff/0x230 net/smc/smc_pnet.c:1164 smc_ib_add_dev+0x4da/0x820 net/smc/smc_ib.c:940 add_client_context+0x4f6/0x830 drivers/infiniband/core/device.c:720 enable_device_and_get+0x1eb/0x480 drivers/infiniband/core/device.c:1331 ib_register_device+0x1178/0x1540 drivers/infiniband/core/device.c:1419 rxe_register_device+0x25d/0x360 drivers/infiniband/sw/rxe/rxe_verbs.c:1146 rxe_net_add+0x73/0xd0 drivers/infiniband/sw/rxe/rxe_net.c:538 rxe_newlink+0x6b/0xf0 drivers/infiniband/sw/rxe/rxe.c:268 nldev_newlink+0x5b4/0x660 drivers/infiniband/core/nldev.c:1717 rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline] rdma_nl_rcv+0x6f1/0xa30 drivers/infiniband/core/netlink.c:259 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x81a/0x9f0 net/netlink/af_netlink.c:1343 netlink_sendmsg+0xaec/0xe60 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg net/socket.c:725 [inline] ____sys_sendmsg+0x5b9/0x910 net/socket.c:2413 ___sys_sendmsg net/socket.c:2467 [inline] __sys_sendmsg+0x280/0x370 net/socket.c:2496 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 RIP: 0033:0x7f4ee357a059 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4ee1eef168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f4ee368cf60 RCX: 00007f4ee357a059 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000003 RBP: 00007f4ee35d408d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcb79da1ff R14: 00007f4ee1eef300 R15: 0000000000022000 ============================= [ BUG: Invalid wait context ] 5.17.0-rc5-syzkaller #0 Tainted: G W ----------------------------- syz-executor.3/23063 is trying to lock: ffffffff8de29818 (smc_ib_devices.mutex){+.+.}-{3:3}, at: smc_pnet_apply_ib+0x25/0x190 net/smc/smc_pnet.c:251 other info that might help us debug this: context-{4:4} 6 locks held by syz-executor.3/23063: #0: ffffffff91032638 (&rdma_nl_types[idx].sem){.+.+}-{3:3}, at: rdma_nl_rcv_msg drivers/infiniband/core/netlink.c:164 [inline] #0: ffffffff91032638 (&rdma_nl_types[idx].sem){.+.+}-{3:3}, at: rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline] #0: ffffffff91032638 (&rdma_nl_types[idx].sem){.+.+}-{3:3}, at: rdma_nl_rcv+0x33a/0xa30 drivers/infiniband/core/netlink.c:259 #1: ffffffff8d9993f0 (link_ops_rwsem){++++}-{3:3}, at: nldev_newlink+0x3f6/0x660 drivers/infiniband/core/nldev.c:1707 #2: ffffffff8d98c170 (devices_rwsem){++++}-{3:3}, at: enable_device_and_get+0x128/0x480 drivers/infiniband/core/device.c:1321 #3: ffffffff8d98c470 (clients_rwsem){++++}-{3:3}, at: enable_device_and_get+0x18d/0x480 drivers/infiniband/core/device.c:1329 #4: ffff88801e5945c0 (&device->client_data_rwsem){++++}-{3:3}, at: add_client_context+0x4ba/0x830 drivers/infiniband/core/device.c:718 #5: ffff8880234ab318 (&pnettable->lock){++++}-{2:2}, at: smc_pnetid_by_table_ib+0x7e/0x230 net/smc/smc_pnet.c:1159 stack backtrace: CPU: 1 PID: 23063 Comm: syz-executor.3 Tainted: G W 5.17.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106 print_lock_invalid_wait_context kernel/locking/lockdep.c:4678 [inline] check_wait_context kernel/locking/lockdep.c:4739 [inline] __lock_acquire+0x195e/0x2b00 kernel/locking/lockdep.c:4977 lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5639 __mutex_lock_common+0x1d5/0x2590 kernel/locking/mutex.c:600 __mutex_lock kernel/locking/mutex.c:733 [inline] mutex_lock_nested+0x1a/0x20 kernel/locking/mutex.c:785 smc_pnet_apply_ib+0x25/0x190 net/smc/smc_pnet.c:251 smc_pnetid_by_table_ib+0x1ff/0x230 net/smc/smc_pnet.c:1164 smc_ib_add_dev+0x4da/0x820 net/smc/smc_ib.c:940 add_client_context+0x4f6/0x830 drivers/infiniband/core/device.c:720 enable_device_and_get+0x1eb/0x480 drivers/infiniband/core/device.c:1331 ib_register_device+0x1178/0x1540 drivers/infiniband/core/device.c:1419 rxe_register_device+0x25d/0x360 drivers/infiniband/sw/rxe/rxe_verbs.c:1146 rxe_net_add+0x73/0xd0 drivers/infiniband/sw/rxe/rxe_net.c:538 rxe_newlink+0x6b/0xf0 drivers/infiniband/sw/rxe/rxe.c:268 nldev_newlink+0x5b4/0x660 drivers/infiniband/core/nldev.c:1717 rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline] rdma_nl_rcv+0x6f1/0xa30 drivers/infiniband/core/netlink.c:259 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x81a/0x9f0 net/netlink/af_netlink.c:1343 netlink_sendmsg+0xaec/0xe60 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg net/socket.c:725 [inline] ____sys_sendmsg+0x5b9/0x910 net/socket.c:2413 ___sys_sendmsg net/socket.c:2467 [inline] __sys_sendmsg+0x280/0x370 net/socket.c:2496 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 RIP: 0033:0x7f4ee357a059 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4ee1eef168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f4ee368cf60 RCX: 00007f4ee357a059 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000003 RBP: 00007f4ee35d408d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcb79da1ff R14: 00007f4ee1eef300 R15: 0000000000022000 smc: ib device syz1 port 1 has pnetid SYZ2 (user defined) vxcan1 speed is unknown, defaulting to 1000 vxcan1 speed is unknown, defaulting to 1000 vxcan1 speed is unknown, defaulting to 1000 vxcan1 speed is unknown, defaulting to 1000 vxcan1 speed is unknown, defaulting to 1000 vxcan1 speed is unknown, defaulting to 1000