EXT4-fs error (device loop2): ext4_free_blocks:4856: comm syz-executor.2: Freeing blocks in system zone - Block = 8, count = 50 EXT4-fs (loop2): Remounting filesystem read-only ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:989! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 29133 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 RIP: 0010:ext4_getblk+0x454/0x4f0 fs/ext4/inode.c:989 Code: 0b e8 e0 24 83 ff 4c 89 e7 e8 d8 d8 d0 ff e9 b0 fd ff ff e8 ce 24 83 ff 4c 89 e7 e8 26 d9 d0 ff e9 ef fe ff ff e8 bc 24 83 ff <0f> 0b e8 45 45 58 ff 48 89 34 24 e8 9c 01 b9 ff 48 8b 34 24 e9 bb RSP: 0018:ffff888020627000 EFLAGS: 00010212 RAX: 0000000000040000 RBX: 0000000000000002 RCX: ffffc900098d0000 RDX: 000000000003950f RSI: ffffffff81df60b4 RDI: 0000000000000005 RBP: 1ffff110040c4e02 R08: 0000000000002000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000021 R13: 0000000000000000 R14: ffff88804a900570 R15: 0000000000000001 FS: 00007f5ec0a29700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f52f6d26000 CR3: 0000000028cc2000 CR4: 00000000003406f0 DR0: 0000000000000003 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: 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 remove_free_dqentry+0x1eb/0x4b0 fs/quota/quota_tree.c:168 free_dqentry fs/quota/quota_tree.c:436 [inline] remove_tree+0xeb5/0x1490 fs/quota/quota_tree.c:491 remove_tree+0x278/0x1490 fs/quota/quota_tree.c:494 remove_tree+0x278/0x1490 fs/quota/quota_tree.c:494 remove_tree+0x278/0x1490 fs/quota/quota_tree.c:494 qtree_delete_dquot fs/quota/quota_tree.c:527 [inline] qtree_release_dquot fs/quota/quota_tree.c:673 [inline] qtree_release_dquot+0x195/0x1d0 fs/quota/quota_tree.c:669 v2_release_dquot+0xce/0x120 fs/quota/quota_v2.c:375 dquot_release+0x1be/0x390 fs/quota/dquot.c:497 ext4_release_dquot+0x22f/0x290 fs/ext4/super.c:5682 dqput.part.0+0x1a3/0x830 fs/quota/dquot.c:794 dqput fs/quota/dquot.c:752 [inline] dqput_all fs/quota/dquot.c:391 [inline] __dquot_drop+0x19c/0x270 fs/quota/dquot.c:1568 dquot_drop fs/quota/dquot.c:1593 [inline] dquot_drop+0x14b/0x1a0 fs/quota/dquot.c:1571 ext4_clear_inode+0x31/0x1d0 fs/ext4/super.c:1178 ext4_evict_inode+0x25b/0x17b0 fs/ext4/inode.c:357 evict+0x2ed/0x760 fs/inode.c:559 iput_final fs/inode.c:1555 [inline] iput+0x4f1/0x860 fs/inode.c:1581 ext4_orphan_cleanup fs/ext4/super.c:2712 [inline] ext4_fill_super+0x832e/0xc850 fs/ext4/super.c:4549 mount_bdev+0x2fc/0x3b0 fs/super.c:1158 mount_fs+0xa3/0x310 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2492 [inline] do_mount+0x115c/0x2f50 fs/namespace.c:2822 ksys_mount+0xcf/0x130 fs/namespace.c:3038 __do_sys_mount fs/namespace.c:3052 [inline] __se_sys_mount fs/namespace.c:3049 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3049 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5ec24b862a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007f5ec0a28f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00000000000004ca RCX: 00007f5ec24b862a RDX: 0000000020000040 RSI: 0000000020000500 RDI: 00007f5ec0a28fe0 RBP: 00007f5ec0a29020 R08: 00007f5ec0a29020 R09: 000000000000c906 R10: 000000000000c906 R11: 0000000000000202 R12: 0000000020000040 R13: 0000000020000500 R14: 00007f5ec0a28fe0 R15: 0000000020000080 Modules linked in: ---[ end trace b765defca6fe1aae ]--- RIP: 0010:ext4_getblk+0x454/0x4f0 fs/ext4/inode.c:989 Code: 0b e8 e0 24 83 ff 4c 89 e7 e8 d8 d8 d0 ff e9 b0 fd ff ff e8 ce 24 83 ff 4c 89 e7 e8 26 d9 d0 ff e9 ef fe ff ff e8 bc 24 83 ff <0f> 0b e8 45 45 58 ff 48 89 34 24 e8 9c 01 b9 ff 48 8b 34 24 e9 bb RSP: 0018:ffff888020627000 EFLAGS: 00010212 RAX: 0000000000040000 RBX: 0000000000000002 RCX: ffffc900098d0000 RDX: 000000000003950f RSI: ffffffff81df60b4 RDI: 0000000000000005 RBP: 1ffff110040c4e02 R08: 0000000000002000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000021 R13: 0000000000000000 R14: ffff88804a900570 R15: 0000000000000001 FS: 00007f5ec0a29700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fef0d5fa988 CR3: 0000000028cc2000 CR4: 00000000003406f0 audit: type=1804 audit(1677545048.228:4752): pid=29161 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir2955889612/syzkaller.47nnX1/2534/bus" dev="sda1" ino=13920 res=1 DR0: 0000000000000003 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600