============================================ WARNING: possible recursive locking detected 5.14.0-rc3-next-20210730-syzkaller #0 Not tainted -------------------------------------------- syz-executor.0/8919 is trying to acquire lock: ffff88801fa8cb00 (&u->iolock){+.+.}-{3:3}, at: __unix_dgram_recvmsg+0x226/0xb80 net/unix/af_unix.c:2166 but task is already holding lock: ffff88801fa8cb00 (&u->iolock){+.+.}-{3:3}, at: unix_dgram_bpf_recvmsg+0x2b9/0xd10 net/unix/unix_bpf.c:53 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&u->iolock); lock(&u->iolock); *** DEADLOCK *** May be due to missing lock nesting notation 1 lock held by syz-executor.0/8919: #0: ffff88801fa8cb00 (&u->iolock){+.+.}-{3:3}, at: unix_dgram_bpf_recvmsg+0x2b9/0xd10 net/unix/unix_bpf.c:53 stack backtrace: CPU: 0 PID: 8919 Comm: syz-executor.0 Not tainted 5.14.0-rc3-next-20210730-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+0xcd/0x134 lib/dump_stack.c:105 print_deadlock_bug kernel/locking/lockdep.c:2944 [inline] check_deadlock kernel/locking/lockdep.c:2987 [inline] validate_chain kernel/locking/lockdep.c:3776 [inline] __lock_acquire.cold+0x149/0x3ab kernel/locking/lockdep.c:5015 lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __mutex_lock_common kernel/locking/mutex.c:957 [inline] __mutex_lock+0x131/0x1300 kernel/locking/mutex.c:1096 __unix_dgram_recvmsg+0x226/0xb80 net/unix/af_unix.c:2166 unix_dgram_bpf_recvmsg+0x630/0xd10 net/unix/unix_bpf.c:71 unix_dgram_recvmsg net/unix/af_unix.c:2262 [inline] unix_seqpacket_recvmsg+0xed/0x150 net/unix/af_unix.c:2135 sock_recvmsg_nosec net/socket.c:944 [inline] sock_recvmsg net/socket.c:962 [inline] sock_recvmsg net/socket.c:958 [inline] ____sys_recvmsg+0x2c4/0x600 net/socket.c:2622 ___sys_recvmsg+0x127/0x200 net/socket.c:2664 __sys_recvmsg+0xe2/0x1a0 net/socket.c:2694 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 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:00007fc596344188 EFLAGS: 00000246 ORIG_RAX: 000000000000002f RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffd49bd7acf R14: 00007fc596344300 R15: 0000000000022000