============================================ WARNING: possible recursive locking detected 6.0.0-rc5-syzkaller-00025-g3245cb65fd91 #0 Not tainted -------------------------------------------- syz-executor241/3615 is trying to acquire lock: ffff88801d470c68 (&pipe->mutex/1){+.+.}-{3:3}, at: __pipe_lock fs/pipe.c:103 [inline] ffff88801d470c68 (&pipe->mutex/1){+.+.}-{3:3}, at: pipe_write+0x12b/0x1aa0 fs/pipe.c:431 but task is already holding lock: ffff888012222868 (&pipe->mutex/1){+.+.}-{3:3}, at: iter_file_splice_write+0x2a2/0xff0 fs/splice.c:632 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&pipe->mutex/1); lock(&pipe->mutex/1); *** DEADLOCK *** May be due to missing lock nesting notation 1 lock held by syz-executor241/3615: #0: ffff888012222868 (&pipe->mutex/1){+.+.}-{3:3}, at: iter_file_splice_write+0x2a2/0xff0 fs/splice.c:632 stack backtrace: CPU: 0 PID: 3615 Comm: syz-executor241 Not tainted 6.0.0-rc5-syzkaller-00025-g3245cb65fd91 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_deadlock_bug kernel/locking/lockdep.c:2988 [inline] check_deadlock kernel/locking/lockdep.c:3031 [inline] validate_chain+0x4897/0x6600 kernel/locking/lockdep.c:3816 __lock_acquire+0x1292/0x1f60 kernel/locking/lockdep.c:5053 lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5666 __mutex_lock_common+0x1de/0x26c0 kernel/locking/mutex.c:603 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799 __pipe_lock fs/pipe.c:103 [inline] pipe_write+0x12b/0x1aa0 fs/pipe.c:431 do_iter_write+0x6f0/0xc50 fs/read_write.c:855 iter_file_splice_write+0x830/0xff0 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] do_splice+0x1105/0x1930 fs/splice.c:1074 __do_splice fs/splice.c:1139 [inline] __do_sys_splice fs/splice.c:1346 [inline] __se_sys_splice+0x2a8/0x410 fs/splice.c:1328 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd5c0e47c79 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 14 00 00 90 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:00007fd5c0dd9308 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007fd5c0ed0418 RCX: 00007fd5c0e47c79 RDX: 0000000000000006 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007fd5c0ed0410 R08: 0000002000002001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd5c0ed041c R13: 00007ffc1007c76f R14: 00007fd5c0dd9400 R15: 0000000000022000