BTRFS warning (device ): duplicate device /dev/loop1 devid 1 generation 8 scanned by systemd-udevd (29274) BTRFS info (device loop2): clearing free space tree BTRFS info (device loop2): clearing 1 ro feature flag BTRFS info (device loop2): clearing 2 ro feature flag ====================================================== WARNING: possible circular locking dependency detected 4.19.211-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.2/29170 is trying to acquire lock: 000000002df2c4ca (&fs_info->qgroup_ioctl_lock){+.+.}, at: btrfs_create_qgroup+0x5a/0x270 fs/btrfs/qgroup.c:1380 but task is already holding lock: 00000000a141e643 (sb_internal#4){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] 00000000a141e643 (sb_internal#4){.+.+}, 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#4){.+.+}: 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_create_qgroup+0x5a/0x270 fs/btrfs/qgroup.c:1380 btrfs_ioctl_qgroup_create fs/btrfs/ioctl.c:5335 [inline] btrfs_ioctl+0xcce/0x76d0 fs/btrfs/ioctl.c:6025 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#4); lock(&fs_info->qgroup_ioctl_lock); lock(sb_internal#4); lock(&fs_info->qgroup_ioctl_lock); *** DEADLOCK *** 2 locks held by syz-executor.2/29170: #0: 000000005c156c1a (sb_writers#19){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 000000005c156c1a (sb_writers#19){.+.+}, at: mnt_want_write_file+0x63/0x1d0 fs/namespace.c:418 #1: 00000000a141e643 (sb_internal#4){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] #1: 00000000a141e643 (sb_internal#4){.+.+}, at: start_transaction+0xa37/0xf90 fs/btrfs/transaction.c:528 stack backtrace: CPU: 0 PID: 29170 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 __mutex_lock_common kernel/locking/mutex.c:937 [inline] __mutex_lock+0xd7/0x1190 kernel/locking/mutex.c:1078 btrfs_create_qgroup+0x5a/0x270 fs/btrfs/qgroup.c:1380 btrfs_ioctl_qgroup_create fs/btrfs/ioctl.c:5335 [inline] btrfs_ioctl+0xcce/0x76d0 fs/btrfs/ioctl.c:6025 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:0x7fac703dc0c9 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:00007fac6e94e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fac704fbf80 RCX: 00007fac703dc0c9 RDX: 0000000020000080 RSI: 000000004010942a RDI: 0000000000000005 RBP: 00007fac70437ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd1bed2a1f R14: 00007fac6e94e300 R15: 0000000000022000 XFS (loop4): Mounting V4 Filesystem XFS (loop4): Ending clean mount XFS (loop4): Quotacheck needed: Please wait. XFS (loop4): Quotacheck: Done. kauditd_printk_skb: 61 callbacks suppressed audit: type=1804 audit(1673143973.398:534): pid=29209 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir1608600812/syzkaller.rMljdQ/336/file0/bus" dev="loop4" ino=42 res=1 XFS (loop4): Unmounting Filesystem IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 BTRFS info (device loop2): enabling inode map caching BTRFS info (device loop2): force clearing of disk cache BTRFS info (device loop2): disabling free space tree gfs2: invalid mount option: disDGYÂpKØŒckècard BTRFS info (device loop2): has skinny extents gfs2: can't parse mount arguments BTRFS warning (device ): duplicate device /dev/loop1 devid 1 generation 8 scanned by syz-executor.1 (29348) BTRFS warning (device ): duplicate device /dev/loop1 devid 1 generation 8 scanned by systemd-udevd (29383) BTRFS info (device loop2): clearing free space tree BTRFS info (device loop2): clearing 1 ro feature flag BTRFS info (device loop2): clearing 2 ro feature flag XFS (loop4): Mounting V4 Filesystem XFS (loop4): Ending clean mount XFS (loop4): Quotacheck needed: Please wait. XFS (loop4): Quotacheck: Done. audit: type=1804 audit(1673143975.138:535): pid=29448 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir1608600812/syzkaller.rMljdQ/337/file0/bus" dev="loop4" ino=42 res=1 audit: type=1804 audit(1673143975.268:536): pid=29333 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir3152943917/syzkaller.dn43tK/42/bus" dev="sda1" ino=15431 res=1 XFS (loop4): Unmounting Filesystem BTRFS info (device loop1): enabling inode map caching BTRFS info (device loop1): force clearing of disk cache gfs2: invalid mount option: disDGYÂpKØŒckècard BTRFS info (device loop1): disabling free space tree gfs2: can't parse mount arguments BTRFS info (device loop1): unrecognized mount option 'user_subvol_rm' BTRFS error (device loop1): open_ctree failed IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 BTRFS info (device loop2): enabling inode map caching BTRFS info (device loop2): force clearing of disk cache BTRFS info (device loop2): disabling free space tree BTRFS info (device loop2): has skinny extents BTRFS info (device loop2): clearing free space tree BTRFS info (device loop2): clearing 1 ro feature flag BTRFS info (device loop2): clearing 2 ro feature flag gfs2: invalid mount option: disDGYÂpKØŒckècard gfs2: can't parse mount arguments audit: type=1800 audit(1673143976.178:537): pid=29577 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="file0" dev="sda1" ino=15437 res=0 BTRFS info (device loop2): trying to use backup root at mount time BTRFS info (device loop2): unrecognized mount option 'euid>00000000000000000000' BTRFS error (device loop2): open_ctree failed XFS (loop4): Mounting V4 Filesystem XFS (loop4): Ending clean mount XFS (loop4): Quotacheck needed: Please wait. XFS (loop4): Quotacheck: Done. audit: type=1804 audit(1673143976.698:538): pid=29643 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir1608600812/syzkaller.rMljdQ/338/file0/bus" dev="loop4" ino=42 res=1 audit: type=1804 audit(1673143976.738:539): pid=29643 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir1608600812/syzkaller.rMljdQ/338/file0/bus" dev="loop4" ino=42 res=1 audit: type=1804 audit(1673143976.738:540): pid=29643 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir1608600812/syzkaller.rMljdQ/338/file0/bus" dev="loop4" ino=42 res=1 XFS (loop4): Unmounting Filesystem audit: type=1804 audit(1673143976.738:541): pid=29643 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir1608600812/syzkaller.rMljdQ/338/file0/bus" dev="loop4" ino=42 res=1 audit: type=1804 audit(1673143976.738:542): pid=29643 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir1608600812/syzkaller.rMljdQ/338/file0/bus" dev="loop4" ino=42 res=1 audit: type=1804 audit(1673143976.738:543): pid=29643 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir1608600812/syzkaller.rMljdQ/338/file0/bus" dev="loop4" ino=42 res=1 BTRFS info (device loop2): trying to use backup root at mount time BTRFS info (device loop2): unrecognized mount option 'euid>00000000000000000000' BTRFS error (device loop2): open_ctree failed BTRFS info (device loop1): unrecognized mount option 'toinode_cache' BTRFS error (device loop1): open_ctree failed BTRFS info (device loop1): unrecognized mount option 'toinode_cache' BTRFS error (device loop1): open_ctree failed BTRFS info (device loop2): trying to use backup root at mount time BTRFS info (device loop2): unrecognized mount option 'euid>00000000000000000000' BTRFS error (device loop2): open_ctree failed BTRFS info (device loop1): unrecognized mount option 'user_aubvo´¶¹9OB¾´I!l_rm›å °Š‹_allowed' BTRFS error (device loop1): open_ctree failed nla_parse: 51 callbacks suppressed netlink: 28 bytes leftover after parsing attributes in process `syz-executor.4'. kauditd_printk_skb: 98 callbacks suppressed audit: type=1800 audit(1673143979.468:642): pid=29946 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.3" name="bus" dev="loop3" ino=7 res=0 netlink: 28 bytes leftover after parsing attributes in process `syz-executor.4'. BTRFS info (device loop1): unrecognized mount option 'user_aubvo´¶¹9OB¾´I!l_rm›å °Š‹_allowed' BTRFS error (device loop1): open_ctree failed BTRFS info (device loop2): unrecognized mount option 'inode_Fache' BTRFS error (device loop2): open_ctree failed audit: type=1800 audit(1673143979.908:643): pid=29931 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="bus" dev="loop5" ino=7 res=0 audit: type=1800 audit(1673143979.938:644): pid=29928 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=13955 res=0 netlink: 28 bytes leftover after parsing attributes in process `syz-executor.4'. audit: type=1800 audit(1673143980.228:645): pid=30013 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.3" name="bus" dev="sda1" ino=13894 res=0 netlink: 28 bytes leftover after parsing attributes in process `syz-executor.4'. audit: type=1800 audit(1673143980.228:646): pid=30013 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.3" name="bus" dev="sda1" ino=13894 res=0 audit: type=1800 audit(1673143980.228:647): pid=30013 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.3" name="bus" dev="sda1" ino=13894 res=0 audit: type=1800 audit(1673143980.228:648): pid=30013 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.3" name="bus" dev="sda1" ino=13894 res=0 audit: type=1800 audit(1673143980.228:649): pid=30013 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.3" name="bus" dev="sda1" ino=13894 res=0 audit: type=1800 audit(1673143980.228:650): pid=30013 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.3" name="bus" dev="sda1" ino=13894 res=0 audit: type=1800 audit(1673143980.228:651): pid=30013 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.3" name="bus" dev="sda1" ino=13894 res=0 BTRFS info (device loop2): unrecognized mount option 'inode_Fache' netlink: 28 bytes leftover after parsing attributes in process `syz-executor.4'. BTRFS error (device loop2): open_ctree failed device Y­4`Ò˜ left promiscuous mode BTRFS info (device loop1): unrecognized mount option 'user_aubvo´¶¹9OB¾´I!l_rm›å °Š‹_allowed' BTRFS error (device loop1): open_ctree failed IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready chnl_net:chnl_net_open(): err: Unable to register and open device, Err:-19 caif:caif_disconnect_client(): nothing to disconnect chnl_net:chnl_flowctrl_cb(): NET flowctrl func called flow: CLOSE/DEINIT BTRFS info (device loop1): enabling inode map caching chnl_net:chnl_net_open(): state disconnected A link change request failed with some changes committed already. Interface caif0 may have been left with an inconsistent configuration, please check. BTRFS info (device loop1): unrecognized mount option 'clear_cachee' netlink: 4 bytes leftover after parsing attributes in process `syz-executor.5'. BTRFS warning (device ): duplicate device /dev/loop2 devid 1 generation 8 scanned by syz-executor.2 (30047) netlink: 12 bytes leftover after parsing attributes in process `syz-executor.5'. BTRFS error (device loop1): open_ctree failed netlink: 28 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor.5'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor.5'.