====================================================== WARNING: possible circular locking dependency detected 4.19.211-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.4/23414 is trying to acquire lock: 00000000a2a4b1bd (&ovl_i_mutex_key[depth]){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] 00000000a2a4b1bd (&ovl_i_mutex_key[depth]){+.+.}, at: ovl_write_iter+0x148/0xb40 fs/overlayfs/file.c:270 but task is already holding lock: 00000000a65c2154 (&pipe->mutex/1){+.+.}, at: pipe_lock_nested fs/pipe.c:77 [inline] 00000000a65c2154 (&pipe->mutex/1){+.+.}, at: pipe_lock fs/pipe.c:85 [inline] 00000000a65c2154 (&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.4/23414: #0: 0000000086903e76 (sb_writers#25){.+.+}, at: file_start_write include/linux/fs.h:2779 [inline] #0: 0000000086903e76 (sb_writers#25){.+.+}, at: do_splice fs/splice.c:1153 [inline] #0: 0000000086903e76 (sb_writers#25){.+.+}, at: __do_sys_splice fs/splice.c:1428 [inline] #0: 0000000086903e76 (sb_writers#25){.+.+}, at: __se_sys_splice+0x11de/0x16d0 fs/splice.c:1408 #1: 00000000a65c2154 (&pipe->mutex/1){+.+.}, at: pipe_lock_nested fs/pipe.c:77 [inline] #1: 00000000a65c2154 (&pipe->mutex/1){+.+.}, at: pipe_lock fs/pipe.c:85 [inline] #1: 00000000a65c2154 (&pipe->mutex/1){+.+.}, at: pipe_wait+0x1bd/0x1e0 fs/pipe.c:133 stack backtrace: CPU: 1 PID: 23414 Comm: syz-executor.4 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:0x7f0e168750c9 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:00007f0e14de7168 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007f0e16994f80 RCX: 00007f0e168750c9 RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f0e168d0ae9 R08: 000000000000fdef R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd92c7477f R14: 00007f0e14de7300 R15: 0000000000022000 sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! REISERFS (device loop1): found reiserfs format "3.6" with non-standard journal netlink: 'syz-executor.4': attribute type 1 has an invalid length. REISERFS (device loop1): using ordered data mode reiserfs: using flush barriers IPv6: ADDRCONF(NETDEV_UP): bond3: link is not ready REISERFS (device loop1): journal params: device loop1, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 8021q: adding VLAN 0 to HW filter on device bond3 netlink: 28 bytes leftover after parsing attributes in process `syz-executor.4'. REISERFS (device loop1): checking transaction log (loop1) netlink: 'syz-executor.4': attribute type 1 has an invalid length. REISERFS (device loop1): Using r5 hash to sort names REISERFS (device loop1): Created .reiserfs_priv - reserved for xattr storage. IPv6: ADDRCONF(NETDEV_UP): bond4: link is not ready 8021q: adding VLAN 0 to HW filter on device bond4 netlink: 28 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 'syz-executor.3': attribute type 1 has an invalid length. IPv6: ADDRCONF(NETDEV_UP): bond5: link is not ready 8021q: adding VLAN 0 to HW filter on device bond5 netlink: 28 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 'syz-executor.4': attribute type 1 has an invalid length. REISERFS (device loop1): found reiserfs format "3.6" with non-standard journal IPv6: ADDRCONF(NETDEV_UP): bond5: link is not ready REISERFS (device loop1): using ordered data mode 8021q: adding VLAN 0 to HW filter on device bond5 reiserfs: using flush barriers netlink: 28 bytes leftover after parsing attributes in process `syz-executor.4'. REISERFS (device loop1): journal params: device loop1, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 netlink: 'syz-executor.3': attribute type 1 has an invalid length. REISERFS (device loop1): checking transaction log (loop1) IPv6: ADDRCONF(NETDEV_UP): bond6: link is not ready 8021q: adding VLAN 0 to HW filter on device bond6 netlink: 28 bytes leftover after parsing attributes in process `syz-executor.3'. REISERFS (device loop1): Using r5 hash to sort names REISERFS (device loop1): Created .reiserfs_priv - reserved for xattr storage. netlink: 'syz-executor.3': attribute type 1 has an invalid length. IPv6: ADDRCONF(NETDEV_UP): bond7: link is not ready 8021q: adding VLAN 0 to HW filter on device bond7 netlink: 28 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 'syz-executor.3': attribute type 1 has an invalid length. IPv6: ADDRCONF(NETDEV_UP): bond8: link is not ready 8021q: adding VLAN 0 to HW filter on device bond8 REISERFS (device loop1): found reiserfs format "3.6" with non-standard journal REISERFS (device loop1): using ordered data mode reiserfs: using flush barriers REISERFS (device loop1): journal params: device loop1, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 REISERFS (device loop1): checking transaction log (loop1) REISERFS (device loop1): Using r5 hash to sort names netlink: 'syz-executor.5': attribute type 1 has an invalid length. REISERFS (device loop1): Created .reiserfs_priv - reserved for xattr storage. IPv6: ADDRCONF(NETDEV_UP): bond5: link is not ready 8021q: adding VLAN 0 to HW filter on device bond5 netlink: 'syz-executor.3': attribute type 1 has an invalid length. kauditd_printk_skb: 73 callbacks suppressed audit: type=1800 audit(1672974607.391:524): pid=24056 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=14070 res=0 IPv6: ADDRCONF(NETDEV_UP): bond9: link is not ready 8021q: adding VLAN 0 to HW filter on device bond9 audit: type=1800 audit(1672974607.421:525): pid=24056 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=14070 res=0 netlink: 'syz-executor.5': attribute type 1 has an invalid length. IPv6: ADDRCONF(NETDEV_UP): bond6: link is not ready 8021q: adding VLAN 0 to HW filter on device bond6 audit: type=1800 audit(1672974607.831:526): pid=24168 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=14402 res=0 bond10 (uninitialized): Released all slaves audit: type=1800 audit(1672974607.861:527): pid=24165 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=14402 res=0 IPv6: ADDRCONF(NETDEV_UP): bond7: link is not ready EXT4-fs (loop4): mounting ext2 file system using the ext4 subsystem 8021q: adding VLAN 0 to HW filter on device bond7 audit: type=1800 audit(1672974607.861:528): pid=24165 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=14402 res=0 EXT4-fs (loop4): 1 truncate cleaned up EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue bond10 (uninitialized): Released all slaves audit: type=1800 audit(1672974607.861:529): pid=24165 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=14402 res=0 audit: type=1800 audit(1672974607.861:530): pid=24165 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=14402 res=0 audit: type=1800 audit(1672974607.861:531): pid=24165 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=14402 res=0 IPv6: ADDRCONF(NETDEV_UP): bond10: link is not ready 8021q: adding VLAN 0 to HW filter on device bond10 audit: type=1800 audit(1672974607.861:532): pid=24165 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=14402 res=0 audit: type=1800 audit(1672974607.861:533): pid=24165 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=14402 res=0 IPv6: ADDRCONF(NETDEV_UP): bond11: link is not ready 8021q: adding VLAN 0 to HW filter on device bond11 bond4 (uninitialized): Released all slaves IPv6: ADDRCONF(NETDEV_UP): bond12: link is not ready 8021q: adding VLAN 0 to HW filter on device bond12 IPv6: ADDRCONF(NETDEV_UP): bond8: link is not ready 8021q: adding VLAN 0 to HW filter on device bond8 bond13 (uninitialized): Released all slaves bond4 (uninitialized): Released all slaves bond9 (uninitialized): Released all slaves EXT4-fs (loop4): mounting ext2 file system using the ext4 subsystem bond13 (uninitialized): Released all slaves EXT4-fs (loop4): 1 truncate cleaned up bond9 (uninitialized): Released all slaves EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue bond4 (uninitialized): Released all slaves EXT4-fs (loop1): mounting ext2 file system using the ext4 subsystem bond13 (uninitialized): Released all slaves EXT4-fs (loop1): 1 truncate cleaned up EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop4): mounting ext2 file system using the ext4 subsystem IPv6: ADDRCONF(NETDEV_UP): bond9: link is not ready 8021q: adding VLAN 0 to HW filter on device bond9 bond4 (uninitialized): Released all slaves EXT4-fs (loop4): 1 truncate cleaned up EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue IPv6: ADDRCONF(NETDEV_UP): bond10: link is not ready 8021q: adding VLAN 0 to HW filter on device bond10 bond4 (uninitialized): Released all slaves IPv6: ADDRCONF(NETDEV_UP): bond11: link is not ready 8021q: adding VLAN 0 to HW filter on device bond11 bond4 (uninitialized): Released all slaves nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. EXT4-fs (loop1): mounting ext2 file system using the ext4 subsystem EXT4-fs (loop1): 1 truncate cleaned up EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue IPv6: ADDRCONF(NETDEV_UP): bond13: link is not ready 8021q: adding VLAN 0 to HW filter on device bond13 bond12 (uninitialized): Released all slaves bond4 (uninitialized): Released all slaves bond12 (uninitialized): Released all slaves IPv6: ADDRCONF(NETDEV_UP): bond14: link is not ready 8021q: adding VLAN 0 to HW filter on device bond14 EXT4-fs (loop1): mounting ext2 file system using the ext4 subsystem EXT4-fs (loop1): 1 truncate cleaned up EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue IPv6: ADDRCONF(NETDEV_UP): bond15: link is not ready 8021q: adding VLAN 0 to HW filter on device bond15 validate_nla: 27 callbacks suppressed netlink: 'syz-executor.5': attribute type 1 has an invalid length. bond12 (uninitialized): Released all slaves netlink: 'syz-executor.0': attribute type 1 has an invalid length. bond4 (uninitialized): Released all slaves netlink: 'syz-executor.4': attribute type 1 has an invalid length. IPv6: ADDRCONF(NETDEV_UP): bond6: link is not ready 8021q: adding VLAN 0 to HW filter on device bond6 netlink: 'syz-executor.3': attribute type 1 has an invalid length. IPv6: ADDRCONF(NETDEV_UP): bond16: link is not ready 8021q: adding VLAN 0 to HW filter on device bond16 netlink: 'syz-executor.0': attribute type 1 has an invalid length. bond4 (uninitialized): Released all slaves netlink: 'syz-executor.3': attribute type 1 has an invalid length. IPv6: ADDRCONF(NETDEV_UP): bond17: link is not ready 8021q: adding VLAN 0 to HW filter on device bond17 netlink: 'syz-executor.0': attribute type 1 has an invalid length. bond4 (uninitialized): Released all slaves EXT4-fs (loop1): mounting ext2 file system using the ext4 subsystem EXT4-fs (loop1): 1 truncate cleaned up EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue netlink: 'syz-executor.3': attribute type 1 has an invalid length. IPv6: ADDRCONF(NETDEV_UP): bond18: link is not ready 8021q: adding VLAN 0 to HW filter on device bond18 netlink: 'syz-executor.0': attribute type 1 has an invalid length. bond4 (uninitialized): Released all slaves nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. netlink: 'syz-executor.3': attribute type 1 has an invalid length. IPv6: ADDRCONF(NETDEV_UP): bond19: link is not ready 8021q: adding VLAN 0 to HW filter on device bond19 EXT4-fs (loop1): mounting ext2 file system using the ext4 subsystem IPv6: ADDRCONF(NETDEV_UP): bond12: link is not ready 8021q: adding VLAN 0 to HW filter on device bond12 EXT4-fs (loop1): 1 truncate cleaned up EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue IPv6: ADDRCONF(NETDEV_UP): bond13: link is not ready IPVS: ftp: loaded support on port[0] = 21 8021q: adding VLAN 0 to HW filter on device bond13 IPv6: ADDRCONF(NETDEV_UP): bond20: link is not ready 8021q: adding VLAN 0 to HW filter on device bond20 IPv6: ADDRCONF(NETDEV_UP): bond14: link is not ready 8021q: adding VLAN 0 to HW filter on device bond14 IPv6: ADDRCONF(NETDEV_UP): bond21: link is not ready 8021q: adding VLAN 0 to HW filter on device bond21 IPVS: ftp: loaded support on port[0] = 21 IPv6: ADDRCONF(NETDEV_UP): bond22: link is not ready 8021q: adding VLAN 0 to HW filter on device bond22 EXT4-fs (loop1): mounting ext2 file system using the ext4 subsystem EXT4-fs (loop1): 1 truncate cleaned up EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue IPv6: ADDRCONF(NETDEV_UP): bond15: link is not ready 8021q: adding VLAN 0 to HW filter on device bond15 bond23 (uninitialized): Released all slaves netlink: 28 bytes leftover after parsing attributes in process `syz-executor.0'. IPVS: ftp: loaded support on port[0] = 21 IPv6: ADDRCONF(NETDEV_UP): bond16: link is not ready 8021q: adding VLAN 0 to HW filter on device bond16 netlink: 28 bytes leftover after parsing attributes in process `syz-executor.0'. bond23 (uninitialized): Released all slaves IPVS: ftp: loaded support on port[0] = 21 IPv6: ADDRCONF(NETDEV_UP): bond17: link is not ready 8021q: adding VLAN 0 to HW filter on device bond17 netlink: 28 bytes leftover after parsing attributes in process `syz-executor.0'. bond23 (uninitialized): Released all slaves EXT4-fs (loop4): mounting ext2 file system using the ext4 subsystem EXT4-fs (loop1): mounting ext2 file system using the ext4 subsystem EXT4-fs (loop1): 1 truncate cleaned up EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop4): 1 truncate cleaned up