EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue ====================================================== WARNING: possible circular locking dependency detected 4.19.211-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.4/26434 is trying to acquire lock: 000000005a49bdd7 (&dquot->dq_lock){+.+.}, at: dquot_commit+0x4d/0x400 fs/quota/dquot.c:469 but task is already holding lock: 000000007c08ddd9 (&ei->i_data_sem/2){++++}, at: ext4_truncate+0x746/0x1380 fs/ext4/inode.c:4552 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&ei->i_data_sem/2){++++}: ext4_map_blocks+0x33e/0x1a50 fs/ext4/inode.c:578 ext4_getblk+0xad/0x4f0 fs/ext4/inode.c:993 ext4_bread+0x7c/0x210 fs/ext4/inode.c:1043 ext4_quota_write+0x205/0x530 fs/ext4/super.c:6008 write_blk+0x10a/0x200 fs/quota/quota_tree.c:72 get_free_dqblk+0xff/0x2d0 fs/quota/quota_tree.c:101 do_insert_tree+0x79c/0x1150 fs/quota/quota_tree.c:308 do_insert_tree+0xf5c/0x1150 fs/quota/quota_tree.c:339 audit: type=1804 audit(1677971064.552:880): pid=26426 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir2823739584/syzkaller.61wpMu/415/bus/bus" dev="sda1" ino=14095 res=1 do_insert_tree+0x85b/0x1150 fs/quota/quota_tree.c:339 do_insert_tree+0x85b/0x1150 fs/quota/quota_tree.c:339 dq_insert_tree fs/quota/quota_tree.c:365 [inline] qtree_write_dquot+0x1cb/0x570 fs/quota/quota_tree.c:384 v2_write_dquot+0x11c/0x250 fs/quota/quota_v2.c:359 dquot_acquire+0x25c/0x490 fs/quota/dquot.c:436 ext4_acquire_dquot+0x1e7/0x2d0 fs/ext4/super.c:5666 dqget+0x785/0xfc0 fs/quota/dquot.c:896 dquot_transfer+0x3a3/0x4c0 fs/quota/dquot.c:2079 ext4_setattr+0x58a/0x2560 fs/ext4/inode.c:5604 notify_change+0x70b/0xfc0 fs/attr.c:334 chown_common+0x4a9/0x550 fs/open.c:651 do_fchownat+0x126/0x1e0 fs/open.c:681 __do_sys_lchown fs/open.c:706 [inline] __se_sys_lchown fs/open.c:704 [inline] __x64_sys_lchown+0x7a/0xc0 fs/open.c:704 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #1 (&s->s_dquot.dqio_sem){++++}: v2_read_dquot+0x49/0x120 fs/quota/quota_v2.c:333 dquot_acquire+0x121/0x490 fs/quota/dquot.c:428 ext4_acquire_dquot+0x1e7/0x2d0 fs/ext4/super.c:5666 dqget+0x785/0xfc0 fs/quota/dquot.c:896 __dquot_initialize+0x3bd/0xb70 fs/quota/dquot.c:1470 ext4_unlink+0x177/0x1130 fs/ext4/namei.c:3080 vfs_unlink+0x27d/0x4e0 fs/namei.c:4002 do_unlinkat+0x3b8/0x660 fs/namei.c:4065 __do_sys_unlinkat fs/namei.c:4107 [inline] __se_sys_unlinkat fs/namei.c:4099 [inline] __x64_sys_unlinkat+0xbd/0x120 fs/namei.c:4099 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 (&dquot->dq_lock){+.+.}: __mutex_lock_common kernel/locking/mutex.c:937 [inline] __mutex_lock+0xd7/0x1190 kernel/locking/mutex.c:1078 dquot_commit+0x4d/0x400 fs/quota/dquot.c:469 ext4_write_dquot+0x1e7/0x280 fs/ext4/super.c:5650 ext4_mark_dquot_dirty+0x111/0x1a0 fs/ext4/super.c:5701 mark_dquot_dirty fs/quota/dquot.c:341 [inline] mark_all_dquot_dirty fs/quota/dquot.c:379 [inline] __dquot_free_space+0x5d4/0x9c0 fs/quota/dquot.c:1887 dquot_free_space_nodirty include/linux/quotaops.h:377 [inline] dquot_free_space include/linux/quotaops.h:382 [inline] dquot_free_block include/linux/quotaops.h:393 [inline] ext4_free_blocks+0x1922/0x2ac0 fs/ext4/mballoc.c:4950 ext4_remove_blocks fs/ext4/extents.c:2584 [inline] ext4_ext_rm_leaf fs/ext4/extents.c:2740 [inline] ext4_ext_remove_space+0x26ef/0x3e80 fs/ext4/extents.c:2973 ext4_ext_truncate+0x1ae/0x200 fs/ext4/extents.c:4670 ext4_truncate+0xe27/0x1380 fs/ext4/inode.c:4557 ext4_evict_inode+0x934/0x17b0 fs/ext4/inode.c:305 evict+0x2ed/0x760 fs/inode.c:559 iput_final fs/inode.c:1555 [inline] iput+0x4f1/0x860 fs/inode.c:1581 do_unlinkat+0x40b/0x660 fs/namei.c:4071 __do_sys_unlinkat fs/namei.c:4107 [inline] __se_sys_unlinkat fs/namei.c:4099 [inline] __x64_sys_unlinkat+0xbd/0x120 fs/namei.c:4099 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: &dquot->dq_lock --> &s->s_dquot.dqio_sem --> &ei->i_data_sem/2 Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&ei->i_data_sem/2); lock(&s->s_dquot.dqio_sem); lock(&ei->i_data_sem/2); lock(&dquot->dq_lock); *** DEADLOCK *** 4 locks held by syz-executor.4/26434: #0: 00000000ac024d69 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000ac024d69 (sb_writers#3){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 000000007cb1bbcb (sb_internal){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] #1: 000000007cb1bbcb (sb_internal){.+.+}, at: ext4_evict_inode+0x1311/0x17b0 fs/ext4/inode.c:259 #2: 000000007c08ddd9 (&ei->i_data_sem/2){++++}, at: ext4_truncate+0x746/0x1380 fs/ext4/inode.c:4552 #3: 0000000095977f05 (dquot_srcu){....}, at: i_dquot fs/quota/dquot.c:921 [inline] #3: 0000000095977f05 (dquot_srcu){....}, at: __dquot_free_space+0x19b/0x9c0 fs/quota/dquot.c:1860 stack backtrace: CPU: 1 PID: 26434 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 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 dquot_commit+0x4d/0x400 fs/quota/dquot.c:469 ext4_write_dquot+0x1e7/0x280 fs/ext4/super.c:5650 ext4_mark_dquot_dirty+0x111/0x1a0 fs/ext4/super.c:5701 mark_dquot_dirty fs/quota/dquot.c:341 [inline] mark_all_dquot_dirty fs/quota/dquot.c:379 [inline] __dquot_free_space+0x5d4/0x9c0 fs/quota/dquot.c:1887 dquot_free_space_nodirty include/linux/quotaops.h:377 [inline] dquot_free_space include/linux/quotaops.h:382 [inline] dquot_free_block include/linux/quotaops.h:393 [inline] ext4_free_blocks+0x1922/0x2ac0 fs/ext4/mballoc.c:4950 ext4_remove_blocks fs/ext4/extents.c:2584 [inline] ext4_ext_rm_leaf fs/ext4/extents.c:2740 [inline] ext4_ext_remove_space+0x26ef/0x3e80 fs/ext4/extents.c:2973 ext4_ext_truncate+0x1ae/0x200 fs/ext4/extents.c:4670 ext4_truncate+0xe27/0x1380 fs/ext4/inode.c:4557 ext4_evict_inode+0x934/0x17b0 fs/ext4/inode.c:305 evict+0x2ed/0x760 fs/inode.c:559 iput_final fs/inode.c:1555 [inline] iput+0x4f1/0x860 fs/inode.c:1581 do_unlinkat+0x40b/0x660 fs/namei.c:4071 __do_sys_unlinkat fs/namei.c:4107 [inline] __se_sys_unlinkat fs/namei.c:4099 [inline] __x64_sys_unlinkat+0xbd/0x120 fs/namei.c:4099 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f132ce4c0f9 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:00007f132b3be168 EFLAGS: 00000246 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 00007f132cf6bf80 RCX: 00007f132ce4c0f9 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 00007f132cea7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff9614b57f R14: 00007f132b3be300 R15: 0000000000022000 JFS: discard option not supported on device JFS: discard option not supported on device EXT4-fs error (device loop4): ext4_xattr_delete_inode:2921: inode #15: comm syz-executor.4: corrupted xattr block 33 JFS: discard option not supported on device EXT4-fs warning (device loop4): ext4_evict_inode:318: xattr delete (err -117) jfs: Unrecognized mount option "uid=0x0000000000000000íñ" or missing value ieee802154 phy0 wpan0: encryption failed: -22 EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs error (device loop4): ext4_xattr_delete_inode:2921: inode #15: comm syz-executor.4: corrupted xattr block 33 EXT4-fs warning (device loop4): ext4_evict_inode:318: xattr delete (err -117) EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue JFS: discard option not supported on device JFS: discard option not supported on device EXT4-fs error (device loop4): ext4_xattr_delete_inode:2921: inode #15: comm syz-executor.4: corrupted xattr block 33 JFS: discard option not supported on device EXT4-fs warning (device loop4): ext4_evict_inode:318: xattr delete (err -117) jfs: Unrecognized mount option "uid=0x0000000000000000íñ" or missing value overlayfs: failed to resolve './file0Öyó5ŽKS¶^<Q¡@./file1': -2 overlayfs: unrecognized mount option "ìowerdir=./file0" or missing value audit: type=1804 audit(1677971066.602:881): pid=26596 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir2823739584/syzkaller.61wpMu/417/bus/bus" dev="sda1" ino=13984 res=1 ieee802154 phy0 wpan0: encryption failed: -22 JFS: discard option not supported on device JFS: discard option not supported on device JFS: discard option not supported on device ieee802154 phy0 wpan0: encryption failed: -22 overlayfs: failed to resolve './file0Öyó5ŽKS¶^<Q¡@./file1': -2 ERROR: (device loop1): txAbort: overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: missing 'lowerdir' ieee802154 phy0 wpan0: encryption failed: -22 overlayfs: unrecognized mount option "ìowerdir=./file0" or missing value audit: type=1804 audit(1677971067.542:882): pid=26695 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir2823739584/syzkaller.61wpMu/418/bus/file1/bus" dev="sda1" ino=14488 res=1 ieee802154 phy0 wpan0: encryption failed: -22 JFS: discard option not supported on device JFS: discard option not supported on device JFS: discard option not supported on device ERROR: (device loop1): txAbort: overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value ieee802154 phy0 wpan0: encryption failed: -22 overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value ieee802154 phy0 wpan0: encryption failed: -22 overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: failed to resolve './file1': -2 ieee802154 phy0 wpan0: encryption failed: -22 overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value JFS: discard option not supported on device overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value JFS: discard option not supported on device JFS: discard option not supported on device overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value ERROR: (device loop1): txAbort: overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "ÿÿÿÿ" or missing value overlayfs: unrecognized mount option "urdir=./bu×\ß±$+ r=./file1" or missing value ieee802154 phy0 wpan0: encryption failed: -22 overlayfs: unrecognized mount option "urdir=./bu×\ß±$+ r=./file1" or missing value overlayfs: failed to resolve './file1': -2 ieee802154 phy0 wpan0: encryption failed: -22 JFS: discard option not supported on device JFS: discard option not supported on device JFS: discard option not supported on device jfs: Unrecognized mount option "uid=0x0000000000000000eõ@þ=ùü&¹òp¬ç‘Í åÊÊ­ï5°é”Û$){TÜHHÔD\}ÿ‘\}ìVc—ú3¨´ï$…Îú/Ktáp2M‰ºÐ䟰" or missing value overlayfs: failed to resolve './bus': -2 ieee802154 phy0 wpan0: encryption failed: -22 overlayfs: failed to resolve './file1': -2 ieee802154 phy0 wpan0: encryption failed: -22 overlayfs: failed to resolve './file1': -2 overlayfs: conflicting lowerdir path ieee802154 phy0 wpan0: encryption failed: -22 JFS: discard option not supported on device JFS: discard option not supported on device JFS: discard option not supported on device jfs: Unrecognized mount option "uid=0x0000000000000000eõ@þ=ùü&¹òp¬ç‘Í åÊÊ­ï5°é”Û$){TÜHHÔD\}ÿ‘\}ìVc—ú3¨´ï$…Îú/Ktáp2M‰ºÐ䟰" or missing value overlayfs: unrecognized mount option "0xffffffffffffffff" or missing value ieee802154 phy0 wpan0: encryption failed: -22 overlayfs: unrecognized mount option "0xffffffffffffffff" or missing value JFS: discard option not supported on device JFS: discard option not supported on device JFS: discard option not supported on device jfs: Unrecognized mount option "uid=0x0000000000000000eõ@þ=ùü&¹òp¬ç‘Í åÊÊ­ï5°é”Û$){TÜHHÔD\}ÿ‘\}ìVc—ú3¨´ï$…Îú/Ktáp2M‰ºÐ䟰" or missing value overlayfs: unrecognized mount option "0xffffffffffffffff" or missing value overlayfs: missing 'workdir' overlayfs: missing 'workdir' JFS: discard option not supported on device JFS: discard option not supported on device JFS: discard option not supported on device jfs: Unrecognized mount option "uid=0x0000000000000000" or missing value overlayfs: missing 'workdir' overlayfs: unrecognized mount option "rdir=./bus" or missing value audit: type=1804 audit(1677971072.142:883): pid=27256 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir60070268/syzkaller.9AFspJ/349/bus/bus" dev="sda1" ino=15059 res=1 audit: type=1804 audit(1677971072.232:884): pid=27265 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir60070268/syzkaller.9AFspJ/349/bus/bus" dev="sda1" ino=15059 res=1 JFS: discard option not supported on device JFS: discard option not supported on device JFS: discard option not supported on device jfs: Unrecognized mount option "uid=0x0000000000000000" or missing value overlayfs: unrecognized mount option "workerdih=//fiWe0˜‰×¶s'Qo©Ùò’½ÆÂ.ÓÚ[Zd¼ü*±Éüöœv¼Ó¸ŸÎ[8u˜9VeþÅŸ÷q–‹PÙH»dÓo¾]¥$£½æs9" or missing value JFS: discard option not supported on device JFS: discard option not supported on device JFS: discard option not supported on device jfs: Unrecognized mount option "uid=0x0000000000000000" or missing value overlayfs: unrecognized mount option "upperdir¼" or missing value overlayfs: unrecognized mount option "workerdih=//fiWe0˜‰×¶s'Qo©Ùò’½ÆÂ.ÓÚ[Zd¼ü*±Éüöœv¼Ó¸ŸÎ[8u˜9VeþÅŸ÷q–‹PÙH»dÓo¾]¥$£½æs9" or missing value overlayfs: unrecognized mount option "upperdir¼" or missing value overlayfs: upperdir is in-use as upperdir/workdir of another mount, mount with '-o index=off' to override exclusive upperdir protection. overlayfs: failed to resolve './file1': -2 overlayfs: failed to resolve './file0': -2 overlayfs: failed to resolve './file1': -2 JFS: discard option not supported on device JFS: discard option not supported on device JFS: discard option not supported on device jfs: Unrecognized mount option "ÿî§<< G4š¶mRŸ±â½ÆuÆÌëê0º‰wÆ2ÝËàíù†¶Žæ" or missing value ERROR: (device loop1): txAbort: overlayfs: failed to resolve './file1': -2 audit: type=1804 audit(1677971074.263:885): pid=27479 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir60070268/syzkaller.9AFspJ/355/bus/file0/bus" dev="loop4" ino=160 res=1 audit: type=1804 audit(1677971074.353:886): pid=27504 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir60070268/syzkaller.9AFspJ/355/bus/file0/bus" dev="loop4" ino=160 res=1 overlayfs: failed to resolve './bus': -2 overlayfs: unrecognized mount option "upper%Jdir=.orkdirã2–8V˜è =." or missing value audit: type=1804 audit(1677971074.773:887): pid=27519 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir60070268/syzkaller.9AFspJ/356/bus/file0/bus" dev="loop4" ino=161 res=1