netlink: 12 bytes leftover after parsing attributes in process `syz-executor.5'. device vxlan0 entered promiscuous mode overlayfs: unrecognized mount option "rootcontext=root" or missing value overlayfs: overlapping lowerdir path ====================================================== WARNING: possible circular locking dependency detected 4.19.211-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.2/11109 is trying to acquire lock: 000000007773745a (&ovl_i_mutex_key[depth]){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] 000000007773745a (&ovl_i_mutex_key[depth]){+.+.}, at: ovl_write_iter+0x148/0xb40 fs/overlayfs/file.c:270 but task is already holding lock: 000000003cf2a67b (&pipe->mutex/1){+.+.}, at: pipe_lock_nested fs/pipe.c:77 [inline] 000000003cf2a67b (&pipe->mutex/1){+.+.}, at: pipe_lock fs/pipe.c:85 [inline] 000000003cf2a67b (&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_setattr+0xdd/0x920 fs/overlayfs/inode.c:30 notify_change+0x70b/0xfc0 fs/attr.c:334 do_truncate+0x134/0x1f0 fs/open.c:63 handle_truncate fs/namei.c:3009 [inline] do_last fs/namei.c:3427 [inline] path_openat+0x2308/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 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.2/11109: #0: 000000008e6b8797 (sb_writers#18){.+.+}, at: file_start_write include/linux/fs.h:2779 [inline] #0: 000000008e6b8797 (sb_writers#18){.+.+}, at: do_splice fs/splice.c:1153 [inline] #0: 000000008e6b8797 (sb_writers#18){.+.+}, at: __do_sys_splice fs/splice.c:1428 [inline] #0: 000000008e6b8797 (sb_writers#18){.+.+}, at: __se_sys_splice+0x11de/0x16d0 fs/splice.c:1408 #1: 000000003cf2a67b (&pipe->mutex/1){+.+.}, at: pipe_lock_nested fs/pipe.c:77 [inline] #1: 000000003cf2a67b (&pipe->mutex/1){+.+.}, at: pipe_lock fs/pipe.c:85 [inline] #1: 000000003cf2a67b (&pipe->mutex/1){+.+.}, at: pipe_wait+0x1bd/0x1e0 fs/pipe.c:133 stack backtrace: CPU: 1 PID: 11109 Comm: syz-executor.2 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:0x7f3539fc50c9 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:00007f3538537168 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007f353a0e4f80 RCX: 00007f3539fc50c9 RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f353a020ae9 R08: 000000000000fdef R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc5d56fabf R14: 00007f3538537300 R15: 0000000000022000 overlayfs: unrecognized mount option "rootcontext=root" or missing value netlink: 12 bytes leftover after parsing attributes in process `syz-executor.5'. IPVS: ftp: loaded support on port[0] = 21 overlayfs: overlapping lowerdir path overlayfs: './file0' not a directory EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue kauditd_printk_skb: 27 callbacks suppressed audit: type=1804 audit(1673082644.867:39): pid=11197 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir1599247344/syzkaller.DPzgus/28/file0/bus" dev="loop2" ino=18 res=1 EXT4-fs error (device loop2): ext4_mb_generate_buddy:744: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop2): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 2 with error 28 BTRFS info (device loop3): enabling inode map caching audit: type=1804 audit(1673082644.877:40): pid=11197 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir1599247344/syzkaller.DPzgus/28/file0/bus" dev="loop2" ino=18 res=1 EXT4-fs (loop2): This should not happen!! Data will be lost BTRFS info (device loop3): force clearing of disk cache BTRFS info (device loop3): disabling free space tree EXT4-fs (loop2): Total free blocks count 0 EXT4-fs (loop2): Free/Dirty block details BTRFS info (device loop3): has skinny extents EXT4-fs (loop2): free_blocks=2415919104 audit: type=1804 audit(1673082644.907:41): pid=11197 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir1599247344/syzkaller.DPzgus/28/file0/bus" dev="loop2" ino=18 res=1 EXT4-fs (loop2): dirty_blocks=16 EXT4-fs (loop2): Block reservation details EXT4-fs (loop2): i_reserved_data_blocks=1 audit: type=1804 audit(1673082644.907:42): pid=11197 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir1599247344/syzkaller.DPzgus/28/file0/bus" dev="loop2" ino=18 res=1 BTRFS info (device loop3): clearing free space tree BTRFS info (device loop3): clearing 1 ro feature flag BTRFS info (device loop3): clearing 2 ro feature flag : renamed from veth1_vlan audit: type=1804 audit(1673082646.167:43): pid=11330 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir1599247344/syzkaller.DPzgus/29/bus" dev="sda1" ino=14070 res=1 audit: type=1804 audit(1673082646.187:44): pid=11329 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir1599247344/syzkaller.DPzgus/29/bus" dev="sda1" ino=14070 res=1 audit: type=1804 audit(1673082646.197:45): pid=11328 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir1599247344/syzkaller.DPzgus/29/bus" dev="sda1" ino=14070 res=1 EXT4-fs (loop2): Unrecognized mount option "./bus" or missing value EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue IPVS: ftp: loaded support on port[0] = 21 audit: type=1804 audit(1673082646.267:46): pid=11346 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir1599247344/syzkaller.DPzgus/30/bus" dev="sda1" ino=14067 res=1 EXT4-fs error (device loop1): ext4_mb_generate_buddy:744: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop1): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 2 with error 28 EXT4-fs (loop1): This should not happen!! Data will be lost audit: type=1804 audit(1673082646.287:47): pid=11348 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir1599247344/syzkaller.DPzgus/30/bus" dev="sda1" ino=14067 res=1 EXT4-fs (loop1): Total free blocks count 0 EXT4-fs (loop1): Free/Dirty block details BTRFS info (device loop0): enabling inode map caching EXT4-fs (loop1): free_blocks=2415919104 BTRFS info (device loop0): force clearing of disk cache BTRFS warning (device ): duplicate device /dev/loop3 devid 1 generation 8 scanned by syz-executor.3 (11323) EXT4-fs (loop1): dirty_blocks=16 REISERFS (device loop5): found reiserfs format "3.6" with non-standard journal audit: type=1804 audit(1673082646.297:48): pid=11348 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir1599247344/syzkaller.DPzgus/30/bus" dev="sda1" ino=14067 res=1 REISERFS (device loop5): using ordered data mode EXT4-fs (loop1): Block reservation details EXT4-fs (loop1): i_reserved_data_blocks=1 BTRFS info (device loop0): disabling free space tree BTRFS info (device loop0): has skinny extents BTRFS warning (device ): duplicate device /dev/loop3 devid 1 generation 8 scanned by systemd-udevd (11399) reiserfs: using flush barriers REISERFS (device loop5): journal params: device loop5, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 EXT4-fs (sda1): Unrecognized mount option "#-*-^--%" or missing value REISERFS (device loop5): checking transaction log (loop5) BTRFS info (device loop0): clearing free space tree BTRFS info (device loop0): clearing 1 ro feature flag BTRFS info (device loop0): clearing 2 ro feature flag REISERFS (device loop5): Using r5 hash to sort names REISERFS (device loop5): Created .reiserfs_priv - reserved for xattr storage. EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs error (device loop1): ext4_mb_generate_buddy:744: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop1): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 2 with error 28 EXT4-fs (loop1): This should not happen!! Data will be lost BTRFS info (device loop3): enabling inode map caching EXT4-fs (loop1): Total free blocks count 0 EXT4-fs (loop1): Free/Dirty block details BTRFS info (device loop3): force clearing of disk cache EXT4-fs (loop1): free_blocks=2415919104 EXT4-fs (loop1): dirty_blocks=16 EXT4-fs (loop1): Block reservation details EXT4-fs (loop1): i_reserved_data_blocks=1 BTRFS info (device loop3): disabling free space tree BTRFS info (device loop3): has skinny extents EXT4-fs (sda1): Unrecognized mount option "#-*-^--%" or missing value IPVS: ftp: loaded support on port[0] = 21 EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue BTRFS info (device loop3): clearing free space tree BTRFS info (device loop3): clearing 1 ro feature flag BTRFS info (device loop3): clearing 2 ro feature flag EXT4-fs error (device loop1): ext4_mb_generate_buddy:744: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop1): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 2 with error 28 REISERFS (device loop5): found reiserfs format "3.6" with non-standard journal REISERFS (device loop5): using ordered data mode reiserfs: using flush barriers EXT4-fs (loop1): This should not happen!! Data will be lost REISERFS (device loop5): journal params: device loop5, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 EXT4-fs (loop1): Total free blocks count 0 REISERFS (device loop5): checking transaction log (loop5) EXT4-fs (loop1): Free/Dirty block details EXT4-fs (loop1): free_blocks=2415919104 REISERFS (device loop5): Using r5 hash to sort names EXT4-fs (loop1): dirty_blocks=16 REISERFS (device loop5): Created .reiserfs_priv - reserved for xattr storage. EXT4-fs (loop1): Block reservation details EXT4-fs (loop1): i_reserved_data_blocks=1 BTRFS info (device loop0): enabling inode map caching BTRFS info (device loop0): force clearing of disk cache BTRFS info (device loop0): disabling free space tree BTRFS info (device loop0): has skinny extents BTRFS info (device loop0): clearing free space tree BTRFS info (device loop0): clearing 1 ro feature flag BTRFS info (device loop0): clearing 2 ro feature flag EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue kauditd_printk_skb: 171 callbacks suppressed audit: type=1804 audit(1673082650.138:220): pid=11647 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir520829696/syzkaller.qxJaX8/29/file0/bus" dev="loop1" ino=18 res=1 EXT4-fs error (device loop1): ext4_mb_generate_buddy:744: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters EXT4-fs (loop1): Delayed block allocation failed for inode 18 at logical offset 0 with max blocks 2 with error 28 audit: type=1804 audit(1673082650.178:221): pid=11647 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir520829696/syzkaller.qxJaX8/29/file0/bus" dev="loop1" ino=18 res=1 EXT4-fs (loop1): This should not happen!! Data will be lost EXT4-fs (loop1): Total free blocks count 0 EXT4-fs (loop1): Free/Dirty block details audit: type=1804 audit(1673082650.178:222): pid=11647 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir520829696/syzkaller.qxJaX8/29/file0/bus" dev="loop1" ino=18 res=1 EXT4-fs (loop1): free_blocks=2415919104 audit: type=1804 audit(1673082650.178:223): pid=11647 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir520829696/syzkaller.qxJaX8/29/file0/bus" dev="loop1" ino=18 res=1 EXT4-fs (loop1): dirty_blocks=16 BTRFS: device fsid e417788f-7a09-42b2-9266-8ddc5d5d35d2 devid 1 transid 8 /dev/loop5 EXT4-fs (loop1): Block reservation details EXT4-fs (loop1): i_reserved_data_blocks=1 BTRFS error (device loop5): unsupported checksum algorithm 1 BTRFS error (device loop5): superblock checksum mismatch BTRFS error (device loop5): open_ctree failed BTRFS info (device loop0): enabling inode map caching BTRFS info (device loop0): force clearing of disk cache BTRFS info (device loop0): disabling free space tree BTRFS info (device loop0): has skinny extents BTRFS info (device loop0): clearing free space tree BTRFS info (device loop0): clearing 1 ro feature flag BTRFS info (device loop0): clearing 2 ro feature flag IPVS: ftp: loaded support on port[0] = 21 chnl_net:caif_netlink_parms(): no params data found bridge0: port 1(bridge_slave_0) entered blocking state bridge0: port 1(bridge_slave_0) entered disabled state device bridge_slave_0 entered promiscuous mode bridge0: port 2(bridge_slave_1) entered blocking state bridge0: port 2(bridge_slave_1) entered disabled state device bridge_slave_1 entered promiscuous mode bond0: Enslaving bond_slave_0 as an active interface with an up link bond0: Enslaving bond_slave_1 as an active interface with an up link IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready team0: Port device team_slave_0 added IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready team0: Port device team_slave_1 added batman_adv: batadv0: Adding interface: batadv_slave_0 batman_adv: batadv0: The MTU of interface batadv_slave_0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active batman_adv: batadv0: Adding interface: batadv_slave_1 batman_adv: batadv0: The MTU of interface batadv_slave_1 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active IPv6: ADDRCONF(NETDEV_UP): bridge_slave_0: link is not ready IPv6: ADDRCONF(NETDEV_UP): bridge_slave_1: link is not ready device hsr_slave_0 entered promiscuous mode device hsr_slave_1 entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): hsr_slave_0: link is not ready IPv6: ADDRCONF(NETDEV_UP): hsr_slave_1: link is not ready IPVS: ftp: loaded support on port[0] = 21 bridge0: port 2(bridge_slave_1) entered blocking state bridge0: port 2(bridge_slave_1) entered forwarding state bridge0: port 1(bridge_slave_0) entered blocking state bridge0: port 1(bridge_slave_0) entered forwarding state batman_adv: batadv0: Interface deactivated: batadv_slave_0 batman_adv: batadv0: Removing interface: batadv_slave_0 batman_adv: batadv0: Interface deactivated: batadv_slave_1 batman_adv: batadv0: Removing interface: batadv_slave_1 device bridge_slave_1 left promiscuous mode bridge0: port 2(bridge_slave_1) entered disabled state device bridge_slave_0 left promiscuous mode bridge0: port 1(bridge_slave_0) entered disabled state batman_adv: batadv0: Interface deactivated: batadv_slave_0 batman_adv: batadv0: Removing interface: batadv_slave_0 batman_adv: batadv0: Interface deactivated: batadv_slave_1 batman_adv: batadv0: Removing interface: batadv_slave_1 device bridge_slave_1 left promiscuous mode bridge0: port 2(bridge_slave_1) entered disabled state device bridge_slave_0 left promiscuous mode bridge0: port 1(bridge_slave_0) entered disabled state device veth1_macvtap left promiscuous mode device veth0_macvtap left promiscuous mode device veth1_vlan left promiscuous mode device veth0_vlan left promiscuous mode device veth1_macvtap left promiscuous mode device veth0_macvtap left promiscuous mode device veth1_vlan left promiscuous mode device veth0_vlan left promiscuous mode