============================================ WARNING: possible recursive locking detected 5.16.0-rc2-syzkaller #0 Not tainted -------------------------------------------- syz-executor.4/17178 is trying to acquire lock: ffff88806c5a2458 (&ei->socket.wq.wait){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline] ffff88806c5a2458 (&ei->socket.wq.wait){..-.}-{2:2}, at: smc_switch_to_fallback+0x738/0x9c0 net/smc/af_smc.c:588 but task is already holding lock: ffff88806c5a4858 (&ei->socket.wq.wait){..-.}-{2:2}, at: smc_switch_to_fallback+0x728/0x9c0 net/smc/af_smc.c:587 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&ei->socket.wq.wait); lock(&ei->socket.wq.wait); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by syz-executor.4/17178: #0: ffff8880872d0120 (sk_lock-AF_SMC){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1645 [inline] #0: ffff8880872d0120 (sk_lock-AF_SMC){+.+.}-{0:0}, at: smc_connect+0xbc/0x920 net/smc/af_smc.c:1258 #1: ffff88806c5a4858 (&ei->socket.wq.wait){..-.}-{2:2}, at: smc_switch_to_fallback+0x728/0x9c0 net/smc/af_smc.c:587 stack backtrace: CPU: 0 PID: 17178 Comm: syz-executor.4 Not tainted 5.16.0-rc2-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_deadlock_bug kernel/locking/lockdep.c:2956 [inline] check_deadlock kernel/locking/lockdep.c:2999 [inline] validate_chain+0x5984/0x8240 kernel/locking/lockdep.c:3788 __lock_acquire+0x1382/0x2b00 kernel/locking/lockdep.c:5027 lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5637 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] smc_switch_to_fallback+0x738/0x9c0 net/smc/af_smc.c:588 smc_connect_fallback net/smc/af_smc.c:598 [inline] smc_connect_decline_fallback net/smc/af_smc.c:628 [inline] __smc_connect+0x922/0x6810 net/smc/af_smc.c:1123 smc_connect+0x5fd/0x920 net/smc/af_smc.c:1287 __sys_connect_file net/socket.c:1896 [inline] __sys_connect+0x29b/0x2d0 net/socket.c:1913 __do_sys_connect net/socket.c:1923 [inline] __se_sys_connect net/socket.c:1920 [inline] __x64_sys_connect+0x76/0x80 net/socket.c:1920 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:0x7f59e827dae9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f59e57f3188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f59e8390f60 RCX: 00007f59e827dae9 RDX: 0000000000000010 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 00007f59e82d7f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff6dc5ec2f R14: 00007f59e57f3300 R15: 0000000000022000