BTRFS info (device loop5): using free space tree BTRFS info (device loop5): has skinny extents netlink: 72 bytes leftover after parsing attributes in process `syz-executor.1'. BTRFS error (device loop5): fail to start transaction for status update: -28 ====================================================== WARNING: possible circular locking dependency detected 4.19.211-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.5/9659 is trying to acquire lock: 0000000023cbb410 (&fs_info->qgroup_ioctl_lock){+.+.}, at: btrfs_del_qgroup_relation+0x45/0x70 fs/btrfs/qgroup.c:1366 but task is already holding lock: 00000000a1a01925 (sb_internal#2){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] 00000000a1a01925 (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_del_qgroup_relation+0x45/0x70 fs/btrfs/qgroup.c:1366 btrfs_ioctl_qgroup_assign fs/btrfs/ioctl.c:5282 [inline] btrfs_ioctl+0x6004/0x76d0 fs/btrfs/ioctl.c:6023 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.5/9659: #0: 00000000eeaaa14a (sb_writers#14){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000eeaaa14a (sb_writers#14){.+.+}, at: mnt_want_write_file+0x63/0x1d0 fs/namespace.c:418 #1: 00000000a1a01925 (sb_internal#2){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] #1: 00000000a1a01925 (sb_internal#2){.+.+}, at: start_transaction+0xa37/0xf90 fs/btrfs/transaction.c:528 stack backtrace: CPU: 0 PID: 9659 Comm: syz-executor.5 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_del_qgroup_relation+0x45/0x70 fs/btrfs/qgroup.c:1366 btrfs_ioctl_qgroup_assign fs/btrfs/ioctl.c:5282 [inline] btrfs_ioctl+0x6004/0x76d0 fs/btrfs/ioctl.c:6023 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 RIP: 0033:0x7fe544b130a9 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:00007fe543085168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe544c32f80 RCX: 00007fe544b130a9 RDX: 0000000020000200 RSI: 0000000040189429 RDI: 0000000000000004 RBP: 00007fe544b6eae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe6c79bc3f R14: 00007fe543085300 R15: 0000000000022000 Unknown ioctl -2146896622 Unknown ioctl -1072143162 caif:caif_disconnect_client(): nothing to disconnect BTRFS info (device loop0): enabling inode map caching BTRFS warning (device loop0): excessive commit interval 620990646 BTRFS info (device loop0): force zlib compression, level 3 BTRFS info (device loop0): using free space tree BTRFS warning (device ): duplicate device /dev/loop3 devid 1 generation 8 scanned by syz-executor.3 (9815) BTRFS info (device loop0): has skinny extents BTRFS warning (device ): duplicate device /dev/loop3 devid 1 generation 8 scanned by systemd-udevd (9859) BTRFS warning (device ): duplicate device /dev/loop5 devid 1 generation 8 scanned by syz-executor.5 (9839) BTRFS warning (device ): duplicate device /dev/loop5 devid 1 generation 8 scanned by systemd-udevd (9861) netlink: 72 bytes leftover after parsing attributes in process `syz-executor.1'. BTRFS error (device loop0): fail to start transaction for status update: -28 audit: type=1800 audit(1672162889.633:2): pid=9903 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.2" name="bus" dev="loop2" ino=3 res=0 UDF-fs: bad mount option "fileset=00018014398509481984" or missing value BTRFS info (device loop5): enabling inode map caching BTRFS warning (device loop5): excessive commit interval 620990646 BTRFS info (device loop5): force zlib compression, level 3 BTRFS info (device loop5): using free space tree BTRFS info (device loop5): has skinny extents UDF-fs: bad mount option "fileset=00018014398509481984" or missing value BTRFS error (device loop5): fail to start transaction for status update: -28 UDF-fs: bad mount option "fileset=00018014398509481984" or missing value audit: type=1800 audit(1672162890.273:3): pid=10022 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.2" name="bus" dev="sda1" ino=13933 res=0 UDF-fs: bad mount option "fileset=00018014398509481984" or missing value audit: type=1800 audit(1672162890.393:4): pid=10036 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.2" name="bus" dev="sda1" ino=13907 res=0 IPVS: ftp: loaded support on port[0] = 21 UDF-fs: bad mount option "fileset=00018014398509481984" or missing value UDF-fs: bad mount option "fileset=00018014398509481984" or missing value netlink: 40 bytes leftover after parsing attributes in process `syz-executor.5'. UDF-fs: bad mount option "fileset=00018014398509481984" or missing value UDF-fs: bad mount option "fileset=00018014398509481984" or missing value IPVS: ftp: loaded support on port[0] = 21 netlink: 40 bytes leftover after parsing attributes in process `syz-executor.5'. UDF-fs: bad mount option "fileset=00018014398509481984" or missing value IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 UDF-fs: bad mount option "fileset=00018014398509481984" or missing value UDF-fs: bad mount option "fileset=00018014398509481984" or missing value UDF-fs: bad mount option "fileset=00018014398509481984" or missing value UDF-fs: bad mount option "fileset=00018014398509481984" or missing value IPVS: ftp: loaded support on port[0] = 21 UDF-fs: bad mount option "fileset=00018014398509481984" or missing value IPVS: ftp: loaded support on port[0] = 21 netlink: 40 bytes leftover after parsing attributes in process `syz-executor.3'. UDF-fs: bad mount option "fileset=00018014398509481984" or missing value netlink: 40 bytes leftover after parsing attributes in process `syz-executor.5'. netlink: 40 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 40 bytes leftover after parsing attributes in process `syz-executor.1'. IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 UDF-fs: bad mount option "fileset=00018014398509481984" or missing value IPVS: ftp: loaded support on port[0] = 21 UDF-fs: bad mount option "fileset=00018014398509481984" or missing value UDF-fs: bad mount option "fileset=00018014398509481984" or missing value UDF-fs: bad mount option "fileset=00018014398509481984" or missing value UDF-fs: bad mount option "fileset=00018014398509481984" or missing value UDF-fs: bad mount option "fileset=00018014398509481984" or missing value netlink: 40 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 40 bytes leftover after parsing attributes in process `syz-executor.5'. IPVS: ftp: loaded support on port[0] = 21 netlink: 40 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 40 bytes leftover after parsing attributes in process `syz-executor.1'. UDF-fs: bad mount option "fileset=00018014398509481984" or missing value UDF-fs: bad mount option "fileset=00018014398509481984" or missing value audit: type=1800 audit(1672162895.824:5): pid=10536 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="bus" dev="loop5" ino=4 res=0 audit: type=1800 audit(1672162895.864:6): pid=10539 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=5 res=0 UDF-fs: bad mount option "fileset=00018014398509481984" or missing value UDF-fs: bad mount option "fileset=00018014398509481984" or missing value FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 PID: 10623 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 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0xf lib/fault-inject.c:149 __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0x10 mm/slab_common.c:1590 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc mm/slab.c:3383 [inline] __do_kmalloc mm/slab.c:3725 [inline] __kmalloc+0x2ab/0x3c0 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] __do_sys_memfd_create mm/memfd.c:295 [inline] __se_sys_memfd_create+0xf8/0x440 mm/memfd.c:268 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f946157e0a9 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:00007f945faeff38 EFLAGS: 00000202 ORIG_RAX: 000000000000013f RAX: ffffffffffffffda RBX: 0000000000000c02 RCX: 00007f946157e0a9 RDX: 00007f945faeffdc RSI: 0000000000000000 RDI: 00007f94615d8e81 RBP: 0000000000000c02 R08: 00007f945faefe20 R09: ffffffffffffffff R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 00007f945faeffdc R14: 00007f945faeffe0 R15: 0000000020001840 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 10661 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 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0xf lib/fault-inject.c:149 __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0x10 mm/slab_common.c:1590 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc mm/slab.c:3383 [inline] kmem_cache_alloc+0x277/0x370 mm/slab.c:3557 shmem_alloc_inode+0x18/0x40 mm/shmem.c:3609 alloc_inode+0x5d/0x180 fs/inode.c:211 new_inode_pseudo fs/inode.c:911 [inline] new_inode+0x1d/0xf0 fs/inode.c:940 shmem_get_inode+0x96/0x8d0 mm/shmem.c:2196 __shmem_file_setup.part.0+0x7a/0x2b0 mm/shmem.c:3965 __shmem_file_setup mm/shmem.c:3959 [inline] shmem_file_setup+0x61/0x90 mm/shmem.c:4006 __do_sys_memfd_create mm/memfd.c:325 [inline] __se_sys_memfd_create+0x26b/0x440 mm/memfd.c:268 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe