kauditd_printk_skb: 29 callbacks suppressed audit: type=1804 audit(1678029109.455:261): pid=16863 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir1802783369/syzkaller.kCQ0MB/106/bus/bus" dev="overlay" ino=14566 res=1 ====================================================== WARNING: possible circular locking dependency detected 4.19.211-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.0/16853 is trying to acquire lock: 00000000a6198d00 (&ovl_i_mutex_key[depth]){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] 00000000a6198d00 (&ovl_i_mutex_key[depth]){+.+.}, at: ovl_write_iter+0x148/0xb40 fs/overlayfs/file.c:270 but task is already holding lock: 000000002e61fb7a (&pipe->mutex/1){+.+.}, at: pipe_lock_nested fs/pipe.c:77 [inline] 000000002e61fb7a (&pipe->mutex/1){+.+.}, at: pipe_lock fs/pipe.c:85 [inline] 000000002e61fb7a (&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.0/16853: #0: 000000004c0635fb (sb_writers#20){.+.+}, at: file_start_write include/linux/fs.h:2779 [inline] #0: 000000004c0635fb (sb_writers#20){.+.+}, at: do_splice fs/splice.c:1153 [inline] #0: 000000004c0635fb (sb_writers#20){.+.+}, at: __do_sys_splice fs/splice.c:1428 [inline] #0: 000000004c0635fb (sb_writers#20){.+.+}, at: __se_sys_splice+0x11de/0x16d0 fs/splice.c:1408 #1: 000000002e61fb7a (&pipe->mutex/1){+.+.}, at: pipe_lock_nested fs/pipe.c:77 [inline] #1: 000000002e61fb7a (&pipe->mutex/1){+.+.}, at: pipe_lock fs/pipe.c:85 [inline] #1: 000000002e61fb7a (&pipe->mutex/1){+.+.}, at: pipe_wait+0x1bd/0x1e0 fs/pipe.c:133 stack backtrace: CPU: 1 PID: 16853 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 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:0x7fe25ce790f9 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:00007fe25b3eb168 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007fe25cf98f80 RCX: 00007fe25ce790f9 RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fe25ced4ae9 R08: 000000000000fdef R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd95104f3f R14: 00007fe25b3eb300 R15: 0000000000022000 BTRFS info (device loop2): enabling inode map caching block nbd5: Device being setup by another task BTRFS warning (device loop2): excessive commit interval 622039222 block nbd5: shutting down sockets BTRFS info (device loop2): force zlib compression, level 3 BTRFS info (device loop2): using free space tree BTRFS info (device loop2): has skinny extents XFS (loop4): DAX enabled. Warning: EXPERIMENTAL, use at your own risk block nbd5: Device being setup by another task XFS (loop4): DAX unsupported by block device. Turning off DAX. XFS (loop4): Mounting V4 Filesystem block nbd5: Device being setup by another task XFS (loop4): Ending clean mount XFS (loop4): Quotacheck needed: Please wait. block nbd5: shutting down sockets XFS (loop4): Quotacheck: Done. XFS (loop4): Unmounting Filesystem overlayfs: failed to resolve './bus': -2 block nbd5: Device being setup by another task block nbd1: Device being setup by another task block nbd0: server does not support multiple connections per device. block nbd1: Device being setup by another task block nbd5: Device being setup by another task block nbd0: shutting down sockets block nbd5: server does not support multiple connections per device. block nbd0: server does not support multiple connections per device. block nbd5: shutting down sockets block nbd5: server does not support multiple connections per device. block nbd5: server does not support multiple connections per device. BTRFS info (device loop2): enabling inode map caching block nbd1: Device being setup by another task BTRFS warning (device loop2): excessive commit interval 622039222 block nbd4: server does not support multiple connections per device. BTRFS info (device loop2): force zlib compression, level 3 BTRFS info (device loop2): using free space tree BTRFS info (device loop2): has skinny extents block nbd4: shutting down sockets block nbd4: server does not support multiple connections per device. block nbd1: Device being setup by another task EXT4-fs (loop4): mounting ext2 file system using the ext4 subsystem block nbd1: Device being setup by another task block nbd1: Device being setup by another task block nbd0: server does not support multiple connections per device. EXT4-fs error (device loop4): ext4_ext_check_inode:498: inode #15: comm syz-executor.4: pblk 0 bad header/extent: invalid eh_entries - magic f30a, entries 24833, max 4(4), depth 0(0) block nbd0: shutting down sockets EXT4-fs error (device loop4): ext4_orphan_get:1235: comm syz-executor.4: couldn't read orphan inode 15 (err -117) block nbd0: server does not support multiple connections per device. EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop4): mounting ext2 file system using the ext4 subsystem BTRFS info (device loop2): enabling inode map caching block nbd0: server does not support multiple connections per device. EXT4-fs error (device loop4): ext4_ext_check_inode:498: inode #15: comm syz-executor.4: pblk 0 bad header/extent: invalid eh_entries - magic f30a, entries 24833, max 4(4), depth 0(0) block nbd0: shutting down sockets BTRFS warning (device loop2): excessive commit interval 622039222 EXT4-fs error (device loop4): ext4_orphan_get:1235: comm syz-executor.4: couldn't read orphan inode 15 (err -117) block nbd0: server does not support multiple connections per device. EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue BTRFS info (device loop2): force zlib compression, level 3 audit: type=1804 audit(1678029111.515:262): pid=17093 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir1209587109/syzkaller.KAjX0y/114/file0/bus" dev="loop3" ino=7 res=1 BTRFS info (device loop2): using free space tree device syz_tun entered promiscuous mode BTRFS info (device loop2): has skinny extents EXT4-fs (loop4): mounting ext2 file system using the ext4 subsystem audit: type=1804 audit(1678029111.655:263): pid=17153 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir1209587109/syzkaller.KAjX0y/114/file0/bus" dev="loop3" ino=7 res=1 EXT4-fs error (device loop4): ext4_ext_check_inode:498: inode #15: comm syz-executor.4: pblk 0 bad header/extent: invalid eh_entries - magic f30a, entries 24833, max 4(4), depth 0(0) EXT4-fs error (device loop4): ext4_orphan_get:1235: comm syz-executor.4: couldn't read orphan inode 15 (err -117) audit: type=1804 audit(1678029111.715:264): pid=17161 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir1209587109/syzkaller.KAjX0y/114/file0/bus" dev="loop3" ino=7 res=1 EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue Bluetooth: hci2: command 0x0406 tx timeout Bluetooth: hci3: command 0x0406 tx timeout Bluetooth: hci0: command 0x0406 tx timeout netlink: 'syz-executor.4': attribute type 1 has an invalid length. Bluetooth: hci1: command 0x0406 tx timeout Bluetooth: hci5: command 0x0406 tx timeout netlink: 'syz-executor.4': attribute type 1 has an invalid length. netlink: 'syz-executor.1': attribute type 1 has an invalid length. netlink: 'syz-executor.4': attribute type 1 has an invalid length. audit: type=1804 audit(1678029112.225:265): pid=17221 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir1209587109/syzkaller.KAjX0y/115/bus" dev="sda1" ino=14130 res=1 netlink: 'syz-executor.4': attribute type 1 has an invalid length. netlink: 'syz-executor.1': attribute type 1 has an invalid length. netlink: 'syz-executor.1': attribute type 1 has an invalid length. device syz_tun left promiscuous mode netlink: 'syz-executor.1': attribute type 1 has an invalid length. device syz_tun entered promiscuous mode BTRFS info (device loop2): enabling inode map caching audit: type=1804 audit(1678029112.645:266): pid=17230 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir1742732209/syzkaller.S5YgZR/123/bus" dev="sda1" ino=14051 res=1 BTRFS warning (device loop2): excessive commit interval 622039222 BTRFS info (device loop2): force zlib compression, level 3 BTRFS info (device loop2): using free space tree BTRFS info (device loop2): has skinny extents audit: type=1804 audit(1678029112.795:267): pid=17252 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir433612513/syzkaller.04itaA/43/file0/bus" dev="loop4" ino=7 res=1 audit: type=1804 audit(1678029112.825:268): pid=17254 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir1209587109/syzkaller.KAjX0y/116/file0/bus" dev="loop3" ino=7 res=1 audit: type=1804 audit(1678029112.855:269): pid=17286 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir1742732209/syzkaller.S5YgZR/123/bus" dev="sda1" ino=14051 res=1 audit: type=1804 audit(1678029112.895:270): pid=17286 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir1742732209/syzkaller.S5YgZR/123/bus" dev="sda1" ino=14051 res=1 device syz_tun left promiscuous mode device syz_tun entered promiscuous mode netlink: 9 bytes leftover after parsing attributes in process `syz-executor.5'. device gretap0 entered promiscuous mode BTRFS info (device loop2): enabling inode map caching BTRFS warning (device loop2): excessive commit interval 622039222 BTRFS info (device loop2): force zlib compression, level 3 BTRFS info (device loop2): using free space tree BTRFS info (device loop2): has skinny extents netlink: 5 bytes leftover after parsing attributes in process `syz-executor.5'. 0猉功D龌: renamed from gretap0 device c0猉功D龌 left promiscuous mode device syz_tun left promiscuous mode kauditd_printk_skb: 8 callbacks suppressed audit: type=1804 audit(1678029114.735:279): pid=17373 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir433612513/syzkaller.04itaA/44/file0/bus" dev="loop4" ino=7 res=1 audit: type=1804 audit(1678029114.945:280): pid=17416 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir433612513/syzkaller.04itaA/44/file0/bus" dev="loop4" ino=7 res=1 audit: type=1804 audit(1678029115.015:281): pid=17416 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir433612513/syzkaller.04itaA/44/file0/bus" dev="loop4" ino=7 res=1 BTRFS info (device loop2): enabling inode map caching BTRFS warning (device loop2): excessive commit interval 622039222 BTRFS info (device loop2): force zlib compression, level 3 BTRFS info (device loop2): using free space tree BTRFS info (device loop2): has skinny extents netlink: 9 bytes leftover after parsing attributes in process `syz-executor.5'. device c0猉功D龌 entered promiscuous mode netlink: 9 bytes leftover after parsing attributes in process `syz-executor.5'. netlink: 5 bytes leftover after parsing attributes in process `syz-executor.5'. 1猉功D龌: renamed from c0猉功D龌 device c1猉功D龌 left promiscuous mode BTRFS info (device loop2): enabling inode map caching BTRFS warning (device loop2): excessive commit interval 622039222 BTRFS info (device loop2): force zlib compression, level 3 BTRFS info (device loop2): using free space tree BTRFS info (device loop2): has skinny extents netlink: 9 bytes leftover after parsing attributes in process `syz-executor.5'. device c1猉功D龌 entered promiscuous mode BTRFS info (device loop2): enabling inode map caching BTRFS warning (device loop2): excessive commit interval 622039222 BTRFS info (device loop2): force zlib compression, level 3 BTRFS info (device loop2): using free space tree BTRFS info (device loop2): has skinny extents netlink: 5 bytes leftover after parsing attributes in process `syz-executor.5'. 0猉功D龌: renamed from c1猉功D龌 device c0猉功D龌 left promiscuous mode BTRFS info (device loop2): enabling inode map caching BTRFS warning (device loop2): excessive commit interval 622039222 BTRFS info (device loop2): force zlib compression, level 3 BTRFS info (device loop2): using free space tree BTRFS info (device loop2): has skinny extents 9pnet: Insufficient options for proto=fd 9pnet: Insufficient options for proto=fd netlink: 8 bytes leftover after parsing attributes in process `syz-executor.1'. 9pnet: Insufficient options for proto=fd BTRFS info (device loop2): enabling inode map caching BTRFS warning (device loop2): excessive commit interval 622039222 BTRFS info (device loop2): force zlib compression, level 3 BTRFS info (device loop2): using free space tree BTRFS info (device loop2): has skinny extents netlink: 8 bytes leftover after parsing attributes in process `syz-executor.1'. BTRFS info (device loop2): enabling inode map caching BTRFS warning (device loop2): excessive commit interval 622039222 BTRFS info (device loop2): force zlib compression, level 3 BTRFS info (device loop2): using free space tree BTRFS info (device loop2): has skinny extents netlink: 8 bytes leftover after parsing attributes in process `syz-executor.1'. 9pnet: Insufficient options for proto=fd 9pnet: Insufficient options for proto=fd