====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Tainted: G L ------------------------------------------------------ syz.6.3252/22948 is trying to acquire lock: ffff8880772eb1b8 (&p->lock){+.+.}-{4:4}, at: seq_read_iter+0xa4/0xca0 fs/seq_file.c:183 but task is already holding lock: ffff88803736b860 (&pipe->mutex){+.+.}-{4:4}, at: splice_file_to_pipe+0x3e/0x720 fs/splice.c:1242 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #3 (&pipe->mutex){+.+.}-{4:4}: __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x197/0x15a0 kernel/locking/mutex.c:821 anon_pipe_prefill_and_lock fs/pipe.c:165 [inline] anon_pipe_write+0x28f/0x1a90 fs/pipe.c:491 __kernel_write_iter+0x44a/0x8f0 fs/read_write.c:601 __kernel_write+0x106/0x170 fs/read_write.c:621 autofs_write fs/autofs/waitq.c:70 [inline] autofs_notify_daemon+0x770/0xf10 fs/autofs/waitq.c:177 autofs_wait+0x11ad/0x18a0 fs/autofs/waitq.c:439 autofs_mount_wait+0x16b/0x390 fs/autofs/root.c:256 autofs_d_automount+0x64e/0x810 fs/autofs/root.c:410 follow_automount fs/namei.c:1571 [inline] __traverse_mounts+0x3f8/0x800 fs/namei.c:1644 traverse_mounts fs/namei.c:1674 [inline] handle_mounts fs/namei.c:1777 [inline] step_into_slowpath+0x4b8/0x810 fs/namei.c:2146 step_into fs/namei.c:2194 [inline] open_last_lookups fs/namei.c:4893 [inline] path_openat+0xb4a/0x20e0 fs/namei.c:5119 do_file_open+0x23e/0x4a0 fs/namei.c:5151 do_sys_openat2+0x115/0x200 fs/open.c:1492 do_sys_open fs/open.c:1498 [inline] __do_sys_openat fs/open.c:1838 [inline] __se_sys_openat fs/open.c:1833 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1833 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #2 (&sbi->pipe_mutex){+.+.}-{4:4}: __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x197/0x15a0 kernel/locking/mutex.c:821 autofs_write fs/autofs/waitq.c:68 [inline] autofs_notify_daemon+0x75d/0xf10 fs/autofs/waitq.c:177 autofs_wait+0x11ad/0x18a0 fs/autofs/waitq.c:439 autofs_mount_wait+0x16b/0x390 fs/autofs/root.c:256 autofs_d_automount+0x64e/0x810 fs/autofs/root.c:410 follow_automount fs/namei.c:1571 [inline] __traverse_mounts+0x3f8/0x800 fs/namei.c:1644 traverse_mounts fs/namei.c:1674 [inline] handle_mounts fs/namei.c:1777 [inline] step_into_slowpath+0x4b8/0x810 fs/namei.c:2146 step_into fs/namei.c:2194 [inline] walk_component fs/namei.c:2331 [inline] lookup_last fs/namei.c:2839 [inline] path_lookupat+0x433/0x8c0 fs/namei.c:2864 filename_lookup+0x265/0x5d0 fs/namei.c:2893 kern_path+0x3d/0x150 fs/namei.c:3087 lookup_bdev+0xc8/0x2b0 block/bdev.c:1268 resume_store+0x181/0x500 kernel/power/hibernate.c:1292 kernfs_fop_write_iter+0x3a4/0x540 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x612/0xba0 fs/read_write.c:667 ksys_write+0x150/0x270 fs/read_write.c:1016 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #1 (&of->mutex){+.+.}-{4:4}: __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x197/0x15a0 kernel/locking/mutex.c:821 kernfs_seq_start+0x5d/0x420 fs/kernfs/file.c:165 seq_read_iter+0x37e/0xca0 fs/seq_file.c:226 copy_splice_read+0x5ff/0xaa0 fs/splice.c:293 do_splice_read fs/splice.c:907 [inline] splice_direct_to_actor+0x48b/0xcb0 fs/splice.c:1004 do_splice_direct_actor fs/splice.c:1157 [inline] do_splice_direct+0x195/0x290 fs/splice.c:1183 vfs_copy_file_range+0xb9f/0x1400 fs/read_write.c:2329 __do_sys_copy_file_range fs/read_write.c:2378 [inline] __se_sys_copy_file_range+0x2fb/0x480 fs/read_write.c:2345 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #0 (&p->lock){+.+.}-{4:4}: check_prev_add kernel/locking/lockdep.c:3209 [inline] check_prevs_add kernel/locking/lockdep.c:3328 [inline] validate_chain kernel/locking/lockdep.c:3952 [inline] __lock_acquire+0x164c/0x2de0 kernel/locking/lockdep.c:5288 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x197/0x15a0 kernel/locking/mutex.c:821 seq_read_iter+0xa4/0xca0 fs/seq_file.c:183 copy_splice_read+0x5ff/0xaa0 fs/splice.c:293 do_splice_read fs/splice.c:907 [inline] splice_file_to_pipe+0x4ab/0x720 fs/splice.c:1245 do_sendfile+0x4bb/0x8a0 fs/read_write.c:2070 __do_sys_sendfile64 fs/read_write.c:2126 [inline] __se_sys_sendfile64+0x144/0x1a0 fs/read_write.c:2112 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f other info that might help us debug this: Chain exists of: &p->lock --> &sbi->pipe_mutex --> &pipe->mutex Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&pipe->mutex); lock(&sbi->pipe_mutex); lock(&pipe->mutex); lock(&p->lock); *** DEADLOCK *** locks held by syz.6.3252/22948: 1, on CPU#0: #0: ffff88803736b860 (&pipe->mutex){+.+.}-{4:4}, at: splice_file_to_pipe+0x3e/0x720 fs/splice.c:1242 stack backtrace: CPU: 0 UID: 0 PID: 22948 Comm: syz.6.3252 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_circular_bug+0x2e2/0x300 kernel/locking/lockdep.c:2087 check_noncircular+0x12f/0x150 kernel/locking/lockdep.c:2219 check_prev_add kernel/locking/lockdep.c:3209 [inline] check_prevs_add kernel/locking/lockdep.c:3328 [inline] validate_chain kernel/locking/lockdep.c:3952 [inline] __lock_acquire+0x164c/0x2de0 kernel/locking/lockdep.c:5288 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x197/0x15a0 kernel/locking/mutex.c:821 seq_read_iter+0xa4/0xca0 fs/seq_file.c:183 copy_splice_read+0x5ff/0xaa0 fs/splice.c:293 do_splice_read fs/splice.c:907 [inline] splice_file_to_pipe+0x4ab/0x720 fs/splice.c:1245 do_sendfile+0x4bb/0x8a0 fs/read_write.c:2070 __do_sys_sendfile64 fs/read_write.c:2126 [inline] __se_sys_sendfile64+0x144/0x1a0 fs/read_write.c:2112 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x00007f47f1fa94d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f47f2f2d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f47f2225fa0 RCX: 00007f47f1fa94d9 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 0000000000000000 RBP: 00007f47f203804e R08: 0000000000000000 R09: 0000000000000000 R10: 00000002000007ff R11: 0000000000000246 R12: 0000000000000000 R13: 00007f47f2226038 R14: 00007f47f2225fa0 R15: 00007fff4883c9d8