EXT4-fs (loop4): orphan cleanup on readonly fs EXT4-fs error (device loop4): ext4_free_blocks:5434: comm syz-executor.4: Freeing blocks in system zone - Block = 16, count = 16 EXT4-fs (loop4): Remounting filesystem read-only ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:3254! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 16672 Comm: syz-executor.4 Not tainted 5.10.118-syzkaller-00163-gfa7f6a5f56d9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3254 [inline] RIP: 0010:ext4_free_blocks+0x29ed/0x2ad0 fs/ext4/mballoc.c:5400 Code: f6 48 0f a3 05 f4 8e bf 04 0f 92 c3 40 0f 92 c6 31 ff e8 c6 62 8d ff 84 db 75 18 e8 ad 5f 8d ff e9 b8 00 00 00 e8 a3 5f 8d ff <0f> 0b e8 9c 5f 8d ff 0f 0b 65 ff 05 2f 1a 23 7e 48 c7 c0 68 bd 9c RSP: 0018:ffffc90006ab6f80 EFLAGS: 00010287 RAX: ffffffff81df534d RBX: 0000000000000001 RCX: 0000000000040000 RDX: ffffc90004af8000 RSI: 0000000000008e04 RDI: 0000000000008e05 RBP: ffffc90006ab7200 R08: ffffffff81df350e R09: ffffc90006ab7140 R10: fffff52000d56e2f R11: 1ffff92000d56e28 R12: 0000000000000000 R13: dffffc0000000000 R14: 00000000ffffffff R15: ffff88811cb0e000 FS: 00007f9e43dc7700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200e5000 CR3: 0000000160a5a000 CR4: 00000000003526a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_clear_blocks+0x3b5/0x420 fs/ext4/indirect.c:877 ext4_free_data fs/ext4/indirect.c:950 [inline] ext4_ind_truncate+0x83f/0x1040 fs/ext4/indirect.c:1141 ext4_truncate+0xae6/0x1270 fs/ext4/inode.c:4347 ext4_evict_inode+0xecf/0x16d0 fs/ext4/inode.c:288 evict+0x2a3/0x6c0 fs/inode.c:578 iput_final fs/inode.c:1656 [inline] iput+0x61f/0x7d0 fs/inode.c:1682 ext4_quota_enable fs/ext4/super.c:6406 [inline] ext4_enable_quotas+0x5a5/0x960 fs/ext4/super.c:6429 ext4_orphan_cleanup+0x2ee/0xdb0 fs/ext4/super.c:3058 ext4_fill_super+0x896c/0x9240 fs/ext4/super.c:5089 mount_bdev+0x25f/0x370 fs/super.c:1419 ext4_mount+0x34/0x40 fs/ext4/super.c:6607 legacy_get_tree+0xf0/0x190 fs/fs_context.c:592 vfs_get_tree+0x88/0x290 fs/super.c:1549 do_new_mount+0x289/0xad0 fs/namespace.c:2899 path_mount+0x58d/0xce0 fs/namespace.c:3229 do_mount fs/namespace.c:3242 [inline] __do_sys_mount fs/namespace.c:3450 [inline] __se_sys_mount+0x2d2/0x3c0 fs/namespace.c:3427 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3427 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f9e44c5263a 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:00007f9e43dc6f88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000540 RCX: 00007f9e44c5263a RDX: 0000000020000000 RSI: 0000000020000040 RDI: 00007f9e43dc6fe0 RBP: 00007f9e43dc7020 R08: 00007f9e43dc7020 R09: 0000000020000000 R10: 0000000000000081 R11: 0000000000000206 R12: 0000000020000000 R13: 0000000020000040 R14: 00007f9e43dc6fe0 R15: 0000000020000180 Modules linked in: ---[ end trace 5d15d89e23850996 ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3254 [inline] RIP: 0010:ext4_free_blocks+0x29ed/0x2ad0 fs/ext4/mballoc.c:5400 Code: f6 48 0f a3 05 f4 8e bf 04 0f 92 c3 40 0f 92 c6 31 ff e8 c6 62 8d ff 84 db 75 18 e8 ad 5f 8d ff e9 b8 00 00 00 e8 a3 5f 8d ff <0f> 0b e8 9c 5f 8d ff 0f 0b 65 ff 05 2f 1a 23 7e 48 c7 c0 68 bd 9c RSP: 0018:ffffc90006ab6f80 EFLAGS: 00010287 RAX: ffffffff81df534d RBX: 0000000000000001 RCX: 0000000000040000 RDX: ffffc90004af8000 RSI: 0000000000008e04 RDI: 0000000000008e05 RBP: ffffc90006ab7200 R08: ffffffff81df350e R09: ffffc90006ab7140 R10: fffff52000d56e2f R11: 1ffff92000d56e28 R12: 0000000000000000 R13: dffffc0000000000 R14: 00000000ffffffff R15: ffff88811cb0e000 FS: 00007f9e43dc7700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffdd8c49ec8 CR3: 0000000160a5a000 CR4: 00000000003526b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400