BTRFS info (device loop4): using free space tree BTRFS info (device loop4): has skinny extents EXT4-fs (loop0): Unrecognized mount option "" or missing value ====================================================== WARNING: possible circular locking dependency detected 4.19.211-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.4/14060 is trying to acquire lock: 00000000e3e94324 (&fs_info->qgroup_ioctl_lock){+.+.}, at: btrfs_limit_qgroup+0x63/0x7b0 fs/btrfs/qgroup.c:1467 but task is already holding lock: 0000000064548a74 (sb_internal#2){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] 0000000064548a74 (sb_internal#2){.+.+}, at: start_transaction+0xa37/0xf90 fs/btrfs/transaction.c:528 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (sb_internal#2){.+.+}: sb_start_intwrite include/linux/fs.h:1626 [inline] start_transaction+0xa37/0xf90 fs/btrfs/transaction.c:528 btrfs_quota_enable+0x169/0x10b0 fs/btrfs/qgroup.c:905 btrfs_ioctl_quota_ctl fs/btrfs/ioctl.c:5233 [inline] btrfs_ioctl+0x622c/0x76d0 fs/btrfs/ioctl.c:6021 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 (&fs_info->qgroup_ioctl_lock){+.+.}: __mutex_lock_common kernel/locking/mutex.c:937 [inline] __mutex_lock+0xd7/0x1190 kernel/locking/mutex.c:1078 btrfs_limit_qgroup+0x63/0x7b0 fs/btrfs/qgroup.c:1467 btrfs_ioctl_qgroup_limit fs/btrfs/ioctl.c:5386 [inline] btrfs_ioctl+0x3c0c/0x76d0 fs/btrfs/ioctl.c:6027 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 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: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(sb_internal#2); lock(&fs_info->qgroup_ioctl_lock); lock(sb_internal#2); lock(&fs_info->qgroup_ioctl_lock); *** DEADLOCK *** 2 locks held by syz-executor.4/14060: #0: 00000000b0a4571b (sb_writers#17){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000b0a4571b (sb_writers#17){.+.+}, at: mnt_want_write_file+0x63/0x1d0 fs/namespace.c:418 #1: 0000000064548a74 (sb_internal#2){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] #1: 0000000064548a74 (sb_internal#2){.+.+}, at: start_transaction+0xa37/0xf90 fs/btrfs/transaction.c:528 stack backtrace: CPU: 1 PID: 14060 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 __mutex_lock_common kernel/locking/mutex.c:937 [inline] __mutex_lock+0xd7/0x1190 kernel/locking/mutex.c:1078 btrfs_limit_qgroup+0x63/0x7b0 fs/btrfs/qgroup.c:1467 btrfs_ioctl_qgroup_limit fs/btrfs/ioctl.c:5386 [inline] btrfs_ioctl+0x3c0c/0x76d0 fs/btrfs/ioctl.c:6027 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 F2FS-fs (loop5): invalid crc value ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 F2FS-fs (loop5): Found nat_bits in checkpoint entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f0c8f06a0c9 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:00007f0c8d5dc168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f0c8f189f80 RCX: 00007f0c8f06a0c9 F2FS-fs (loop5): f2fs_check_nid_range: out-of-range nid=2, run fsck to fix. RDX: 00000000200011c0 RSI: 000000008030942b RDI: 0000000000000005 RBP: 00007f0c8f0c5ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd5e65f37f R14: 00007f0c8d5dc300 R15: 0000000000022000 BTRFS error (device loop4): fail to start transaction for status update: -28 F2FS-fs (loop5): Mounted with checkpoint version = 48b305e4 attempt to access beyond end of device loop0: rw=2049, want=137, limit=128 batman_adv: Cannot find parent device EXT4-fs error (device sda1): mb_free_blocks:1452: group 5, inode 14442: block 164896:freeing already freed block (bit 1056); block bitmap corrupt. EXT4-fs error (device sda1): ext4_mb_generate_buddy:744: group 5, block bitmap and bg descriptor inconsistent: 17356 vs 17357 free clusters EXT4-fs (sda1): pa 000000005d664169: logic 0, phys. 164896, len 32 batman_adv: batadv0: Adding interface: gretap1 EXT4-fs error (device sda1): ext4_mb_release_inode_pa:3864: group 5, free 16, pa_free 15 batman_adv: batadv0: The MTU of interface gretap1 is too small (1462) 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 gretap1 (retrying later): interface not active BTRFS info (device loop4): using free space tree BTRFS info (device loop4): has skinny extents batman_adv: Cannot find parent device batman_adv: batadv0: Adding interface: gretap2 batman_adv: batadv0: The MTU of interface gretap2 is too small (1462) 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 gretap2 (retrying later): interface not active BTRFS error (device loop4): fail to start transaction for status update: -28 BTRFS warning (device ): duplicate device /dev/loop3 devid 1 generation 8 scanned by syz-executor.3 (14159) F2FS-fs (loop5): invalid crc value F2FS-fs (loop5): Found nat_bits in checkpoint kauditd_printk_skb: 41 callbacks suppressed audit: type=1804 audit(1673033669.434:129): pid=14273 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir3684770051/syzkaller.PEyoer/216/file0/bus" dev="loop5" ino=10 res=1 audit: type=1804 audit(1673033669.454:130): pid=14273 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir3684770051/syzkaller.PEyoer/216/file0/bus" dev="loop5" ino=10 res=1 BTRFS info (device loop3): using free space tree BTRFS info (device loop3): has skinny extents BTRFS warning (device ): duplicate device /dev/loop4 devid 1 generation 8 scanned by syz-executor.4 (14293) BTRFS warning (device ): duplicate device /dev/loop4 devid 1 generation 8 scanned by systemd-udevd (14346) BTRFS error (device loop3): fail to start transaction for status update: -28 XFS (loop0): unknown mount option [zǝk#<0: Umw@T&##*wOJ>Foha8/(^$h ĔqO}QdةEh- 7$0]. netlink: 'syz-executor.0': attribute type 4 has an invalid length. netlink: 'syz-executor.0': attribute type 5 has an invalid length. BTRFS info (device loop3): using free space tree BTRFS info (device loop3): has skinny extents BTRFS error (device loop3): fail to start transaction for status update: -28 XFS (loop0): unknown mount option [zǝk#<0: Umw@T&##*wOJ>Foha8/(^$h ĔqO}QdةEh- 7$0]. f2fs_msg: 2 callbacks suppressed F2FS-fs (loop5): invalid crc value F2FS-fs (loop5): Found nat_bits in checkpoint F2FS-fs (loop5): f2fs_check_nid_range: out-of-range nid=2, run fsck to fix. F2FS-fs (loop4): invalid crc value netlink: 'syz-executor.0': attribute type 4 has an invalid length. F2FS-fs (loop4): Found nat_bits in checkpoint F2FS-fs (loop5): Mounted with checkpoint version = 48b305e4 netlink: 'syz-executor.0': attribute type 5 has an invalid length. audit: type=1804 audit(1673033672.035:131): pid=14316 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir3684770051/syzkaller.PEyoer/217/file0/bus" dev="loop5" ino=10 res=1 F2FS-fs (loop4): f2fs_check_nid_range: out-of-range nid=2, run fsck to fix. audit: type=1804 audit(1673033672.035:132): pid=14316 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir3684770051/syzkaller.PEyoer/217/file0/bus" dev="loop5" ino=10 res=1 netlink: 'syz-executor.0': attribute type 4 has an invalid length. netlink: 'syz-executor.0': attribute type 5 has an invalid length. F2FS-fs (loop4): Mounted with checkpoint version = 48b305e4 audit: type=1804 audit(1673033672.265:133): pid=14369 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir462465908/syzkaller.32v5tv/231/file0/bus" dev="loop4" ino=10 res=1 audit: type=1804 audit(1673033672.295:134): pid=14369 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir462465908/syzkaller.32v5tv/231/file0/bus" dev="loop4" ino=10 res=1 audit: type=1804 audit(1673033672.565:135): pid=14383 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir3035347697/syzkaller.ydij3h/236/bus" dev="sda1" ino=14141 res=1 BTRFS info (device loop3): using free space tree audit: type=1804 audit(1673033672.605:136): pid=14383 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir3035347697/syzkaller.ydij3h/236/bus" dev="sda1" ino=14141 res=1 BTRFS info (device loop3): has skinny extents F2FS-fs (loop1): invalid crc value F2FS-fs (loop1): Found nat_bits in checkpoint BTRFS error (device loop3): fail to start transaction for status update: -28 audit: type=1804 audit(1673033672.955:137): pid=14411 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir1607983217/syzkaller.avsLxf/227/file0/bus" dev="loop1" ino=10 res=1 audit: type=1804 audit(1673033672.995:138): pid=14411 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir1607983217/syzkaller.avsLxf/227/file0/bus" dev="loop1" ino=10 res=1 netlink: 'syz-executor.0': attribute type 4 has an invalid length. netlink: 'syz-executor.0': attribute type 5 has an invalid length. netlink: 'syz-executor.0': attribute type 4 has an invalid length. netlink: 'syz-executor.0': attribute type 5 has an invalid length. BTRFS info (device loop3): using free space tree BTRFS info (device loop3): has skinny extents BTRFS error (device loop3): fail to start transaction for status update: -28 BTRFS info (device loop3): using free space tree BTRFS info (device loop3): has skinny extents kauditd_printk_skb: 1 callbacks suppressed audit: type=1804 audit(1673033674.475:140): pid=14533 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir3684770051/syzkaller.PEyoer/218/file0/bus" dev="loop5" ino=10 res=1 XFS (loop1): unknown mount option [zǝk#<0: Umw@T&##*wOJ>Foha8/(^$h ĔqO}QdةEh- 7$0]. audit: type=1804 audit(1673033674.475:141): pid=14533 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir3684770051/syzkaller.PEyoer/218/file0/bus" dev="loop5" ino=10 res=1 audit: type=1800 audit(1673033674.685:142): pid=14649 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14447 res=0 BTRFS error (device loop3): fail to start transaction for status update: -28 audit: type=1804 audit(1673033674.895:143): pid=14531 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir3035347697/syzkaller.ydij3h/237/bus" dev="sda1" ino=14420 res=1 audit: type=1804 audit(1673033674.925:144): pid=14531 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir3035347697/syzkaller.ydij3h/237/bus" dev="sda1" ino=14420 res=1 audit: type=1804 audit(1673033675.115:145): pid=14553 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir462465908/syzkaller.32v5tv/232/file0/bus" dev="loop4" ino=10 res=1 audit: type=1804 audit(1673033675.145:146): pid=14553 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir462465908/syzkaller.32v5tv/232/file0/bus" dev="loop4" ino=10 res=1 BTRFS info (device loop3): using free space tree BTRFS info (device loop3): has skinny extents audit: type=1800 audit(1673033675.285:147): pid=14726 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=14469 res=0 audit: type=1800 audit(1673033675.315:148): pid=14730 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14474 res=0 audit: type=1800 audit(1673033675.515:149): pid=14761 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14419 res=0 BTRFS info (device loop3): using free space tree BTRFS info (device loop3): has skinny extents BTRFS info (device loop1): using free space tree BTRFS info (device loop1): has skinny extents f2fs_msg: 10 callbacks suppressed F2FS-fs (loop5): invalid crc value F2FS-fs (loop5): Found nat_bits in checkpoint F2FS-fs (loop5): f2fs_check_nid_range: out-of-range nid=2, run fsck to fix. BTRFS info (device loop3): using free space tree F2FS-fs (loop5): Mounted with checkpoint version = 48b305e4 BTRFS info (device loop3): has skinny extents F2FS-fs (loop4): invalid crc value