============================================ WARNING: possible recursive locking detected 5.16.0-rc2-syzkaller-00111-gb501b85957de #0 Not tainted -------------------------------------------- syz-executor.0/24318 is trying to acquire lock: ffff000014ea0658 (&ei->socket.wq.wait){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline] ffff000014ea0658 (&ei->socket.wq.wait){..-.}-{2:2}, at: smc_switch_to_fallback+0x30c/0x7f0 net/smc/af_smc.c:588 but task is already holding lock: ffff000014ea1e58 (&ei->socket.wq.wait){..-.}-{2:2}, at: smc_switch_to_fallback+0x300/0x7f0 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.0/24318: #0: ffff000012cd95a0 (sk_lock-AF_SMC){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1645 [inline] #0: ffff000012cd95a0 (sk_lock-AF_SMC){+.+.}-{0:0}, at: smc_sendmsg+0x48/0x8cc net/smc/af_smc.c:2239 #1: ffff000014ea1e58 (&ei->socket.wq.wait){..-.}-{2:2}, at: smc_switch_to_fallback+0x300/0x7f0 net/smc/af_smc.c:587 stack backtrace: CPU: 1 PID: 24318 Comm: syz-executor.0 Not tainted 5.16.0-rc2-syzkaller-00111-gb501b85957de #0 Hardware name: linux,dummy-virt (DT) Call trace: ptrauth_strip_insn_pac arch/arm64/include/asm/pointer_auth.h:102 [inline] dump_backtrace+0x0/0x3e0 arch/arm64/kernel/stacktrace.c:140 show_stack+0x18/0x24 arch/arm64/kernel/stacktrace.c:222 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x9c/0xd8 lib/dump_stack.c:106 dump_stack+0x1c/0x38 lib/dump_stack.c:113 print_deadlock_bug kernel/locking/lockdep.c:2956 [inline] check_deadlock kernel/locking/lockdep.c:2999 [inline] validate_chain kernel/locking/lockdep.c:3788 [inline] __lock_acquire+0x21d4/0x4900 kernel/locking/lockdep.c:5027 lock_acquire kernel/locking/lockdep.c:5637 [inline] lock_acquire+0x568/0x93c kernel/locking/lockdep.c:5602 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x8c/0x120 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] smc_switch_to_fallback+0x30c/0x7f0 net/smc/af_smc.c:588 smc_sendmsg+0x1d0/0x8cc net/smc/af_smc.c:2247 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg+0xc0/0xf4 net/socket.c:724 ____sys_sendmsg+0x368/0x6cc net/socket.c:2409 ___sys_sendmsg+0xf4/0x170 net/socket.c:2463 __sys_sendmmsg+0x154/0x484 net/socket.c:2549 __do_sys_sendmmsg net/socket.c:2578 [inline] __se_sys_sendmmsg net/socket.c:2575 [inline] __arm64_sys_sendmmsg+0x8c/0xd0 net/socket.c:2575 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x6c/0x260 arch/arm64/kernel/syscall.c:52 el0_svc_common.constprop.0+0xc4/0x254 arch/arm64/kernel/syscall.c:142 do_el0_svc+0xa0/0xcc arch/arm64/kernel/syscall.c:181 el0_svc+0x64/0x290 arch/arm64/kernel/entry-common.c:603 el0t_64_sync_handler+0x1a4/0x1b0 arch/arm64/kernel/entry-common.c:621 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:572