Process accounting resumed ====================================================== WARNING: possible circular locking dependency detected 4.19.211-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.1/318 is trying to acquire lock: 00000000177f2b24 (&ovl_i_mutex_key[depth]){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] 00000000177f2b24 (&ovl_i_mutex_key[depth]){+.+.}, at: ovl_write_iter+0x148/0xb40 fs/overlayfs/file.c:270 but task is already holding lock: 000000004987d9b0 (&pipe->mutex/1){+.+.}, at: pipe_lock_nested fs/pipe.c:77 [inline] 000000004987d9b0 (&pipe->mutex/1){+.+.}, at: pipe_lock fs/pipe.c:85 [inline] 000000004987d9b0 (&pipe->mutex/1){+.+.}, at: pipe_wait+0x1bd/0x1e0 fs/pipe.c:133 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&pipe->mutex/1){+.+.}: pipe_lock_nested fs/pipe.c:77 [inline] pipe_lock+0x63/0x80 fs/pipe.c:85 iter_file_splice_write+0x183/0xbb0 fs/splice.c:700 do_splice_from fs/splice.c:852 [inline] do_splice fs/splice.c:1154 [inline] __do_sys_splice fs/splice.c:1428 [inline] __se_sys_splice+0xfe7/0x16d0 fs/splice.c:1408 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #1 (sb_writers#3){.+.+}: sb_start_write include/linux/fs.h:1579 [inline] mnt_want_write+0x3a/0xb0 fs/namespace.c:360 ovl_link+0x73/0x2b0 fs/overlayfs/dir.c:676 vfs_link+0x7e6/0xc80 fs/namei.c:4243 do_linkat+0x52a/0x810 fs/namei.c:4311 __do_sys_link fs/namei.c:4340 [inline] __se_sys_link fs/namei.c:4338 [inline] __x64_sys_link+0x5d/0x80 fs/namei.c:4338 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 (&ovl_i_mutex_key[depth]){+.+.}: down_write+0x34/0x90 kernel/locking/rwsem.c:70 inode_lock include/linux/fs.h:748 [inline] ovl_write_iter+0x148/0xb40 fs/overlayfs/file.c:270 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x51b/0x770 fs/read_write.c:487 __kernel_write+0x109/0x370 fs/read_write.c:506 write_pipe_buf+0x153/0x1f0 fs/splice.c:798 splice_from_pipe_feed fs/splice.c:503 [inline] __splice_from_pipe+0x389/0x800 fs/splice.c:627 splice_from_pipe fs/splice.c:662 [inline] default_file_splice_write+0xd8/0x180 fs/splice.c:810 do_splice_from fs/splice.c:852 [inline] do_splice fs/splice.c:1154 [inline] __do_sys_splice fs/splice.c:1428 [inline] __se_sys_splice+0xfe7/0x16d0 fs/splice.c:1408 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Chain exists of: &ovl_i_mutex_key[depth] --> sb_writers#3 --> &pipe->mutex/1 Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&pipe->mutex/1); lock(sb_writers#3); lock(&pipe->mutex/1); lock(&ovl_i_mutex_key[depth]); *** DEADLOCK *** 2 locks held by syz-executor.1/318: #0: 000000005c2274b5 (sb_writers#16){.+.+}, at: file_start_write include/linux/fs.h:2779 [inline] #0: 000000005c2274b5 (sb_writers#16){.+.+}, at: do_splice fs/splice.c:1153 [inline] #0: 000000005c2274b5 (sb_writers#16){.+.+}, at: __do_sys_splice fs/splice.c:1428 [inline] #0: 000000005c2274b5 (sb_writers#16){.+.+}, at: __se_sys_splice+0x11de/0x16d0 fs/splice.c:1408 #1: 000000004987d9b0 (&pipe->mutex/1){+.+.}, at: pipe_lock_nested fs/pipe.c:77 [inline] #1: 000000004987d9b0 (&pipe->mutex/1){+.+.}, at: pipe_lock fs/pipe.c:85 [inline] #1: 000000004987d9b0 (&pipe->mutex/1){+.+.}, at: pipe_wait+0x1bd/0x1e0 fs/pipe.c:133 stack backtrace: CPU: 1 PID: 318 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1222 check_prev_add kernel/locking/lockdep.c:1866 [inline] check_prevs_add kernel/locking/lockdep.c:1979 [inline] validate_chain kernel/locking/lockdep.c:2420 [inline] __lock_acquire+0x30c9/0x3ff0 kernel/locking/lockdep.c:3416 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 down_write+0x34/0x90 kernel/locking/rwsem.c:70 inode_lock include/linux/fs.h:748 [inline] ovl_write_iter+0x148/0xb40 fs/overlayfs/file.c:270 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x51b/0x770 fs/read_write.c:487 __kernel_write+0x109/0x370 fs/read_write.c:506 write_pipe_buf+0x153/0x1f0 fs/splice.c:798 splice_from_pipe_feed fs/splice.c:503 [inline] __splice_from_pipe+0x389/0x800 fs/splice.c:627 splice_from_pipe fs/splice.c:662 [inline] default_file_splice_write+0xd8/0x180 fs/splice.c:810 do_splice_from fs/splice.c:852 [inline] do_splice fs/splice.c:1154 [inline] __do_sys_splice fs/splice.c:1428 [inline] __se_sys_splice+0xfe7/0x16d0 fs/splice.c:1408 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fac811df0c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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:00007fac7f751168 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007fac812fef80 RCX: 00007fac811df0c9 RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fac8123aae9 R08: 000000000000fdef R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcf543d9ff R14: 00007fac7f751300 R15: 0000000000022000 syz-executor.3 (32400) used greatest stack depth: 20984 bytes left overlayfs: unrecognized mount option "hino=auto" or missing value IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 9pnet: p9_fd_create_tcp (402): problem connecting socket to 127.0.0.1 9pnet: p9_fd_create_tcp (415): problem connecting socket to 127.0.0.1 IPVS: ftp: loaded support on port[0] = 21 overlayfs: unrecognized mount option "hino=auto" or missing value IPVS: ftp: loaded support on port[0] = 21 Process accounting resumed Process accounting resumed Process accounting resumed Process accounting resumed Process accounting resumed audit: type=1804 audit(1673338572.845:912): pid=477 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir1779597907/syzkaller.yzC8OI/21/cgroup.controllers" dev="sda1" ino=14210 res=1 audit: type=1804 audit(1673338572.845:913): pid=477 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir1779597907/syzkaller.yzC8OI/21/cgroup.controllers" dev="sda1" ino=14210 res=1 netlink: 36 bytes leftover after parsing attributes in process `syz-executor.2'. caif:caif_disconnect_client(): nothing to disconnect audit: type=1804 audit(1673338573.585:914): pid=478 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir3620070341/syzkaller.cEr76O/1467/bus" dev="sda1" ino=13933 res=1 netlink: 36 bytes leftover after parsing attributes in process `syz-executor.2'. caif:caif_disconnect_client(): nothing to disconnect audit: type=1804 audit(1673338574.116:915): pid=536 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir968122838/syzkaller.EPa0qn/1532/cgroup.controllers" dev="sda1" ino=14150 res=1 netlink: 36 bytes leftover after parsing attributes in process `syz-executor.2'. caif:caif_disconnect_client(): nothing to disconnect audit: type=1804 audit(1673338574.116:916): pid=536 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir968122838/syzkaller.EPa0qn/1532/cgroup.controllers" dev="sda1" ino=14150 res=1 audit: type=1804 audit(1673338574.806:917): pid=541 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir3620070341/syzkaller.cEr76O/1468/bus" dev="sda1" ino=13917 res=1 XFS (loop3): Mounting V4 Filesystem XFS (loop3): Ending clean mount XFS (loop3): Quotacheck needed: Please wait. XFS (loop3): Quotacheck: Done. XFS (loop3): unknown mount option [ÿî§<< G4š¶mRŸ±â½ÆuÆÌëê0º‰wÆ2ÝËàíù†¶Žæ]. audit: type=1804 audit(1673338574.966:918): pid=579 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir1779597907/syzkaller.yzC8OI/24/file0/bus" dev="loop3" ino=42 res=1 audit: type=1804 audit(1673338575.526:919): pid=633 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir968122838/syzkaller.EPa0qn/1533/cgroup.controllers" dev="sda1" ino=14385 res=1 audit: type=1804 audit(1673338575.556:920): pid=633 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir968122838/syzkaller.EPa0qn/1533/cgroup.controllers" dev="sda1" ino=14385 res=1 Process accounting resumed audit: type=1804 audit(1673338575.886:921): pid=643 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir3620070341/syzkaller.cEr76O/1469/bus" dev="sda1" ino=14421 res=1 9pnet_virtio: no channels available for device  XFS (loop3): Unmounting Filesystem 9pnet_virtio: no channels available for device  9pnet_virtio: no channels available for device  IPVS: ftp: loaded support on port[0] = 21 x_tables: duplicate underflow at hook 1 Process accounting resumed IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 x_tables: duplicate underflow at hook 1