EXT4-fs error (device loop0): ext4_mb_release_inode_pa:4893: group 0, free 7, pa_free 16 ------------[ cut here ]------------ kernel BUG at fs/ext4/mballoc.c:4866! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 472 Comm: syz.0.16 Not tainted 5.15.184-syzkaller-1080580-g4032a894ccb2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:ext4_mb_release_inode_pa+0xa75/0xa80 fs/ext4/mballoc.c:4866 Code: 80 c2 03 38 c2 0f 8c 3b fe ff ff 48 89 df 41 89 ce e8 ef 48 cc ff 44 89 f1 e9 28 fe ff ff e8 72 d7 8d ff 0f 0b e8 6b d7 8d ff <0f> 0b 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 53 48 89 RSP: 0018:ffffc90000c26860 EFLAGS: 00010293 RAX: ffffffff81dacd75 RBX: 00000000000000a0 RCX: ffff8881173a2780 RDX: 0000000000000000 RSI: 0000000000000060 RDI: 0000000000000000 RBP: ffffc90000c269b0 R08: 0000000000000004 R09: 0000000000000003 R10: fffff52000184d28 R11: 1ffff92000184d28 R12: ffff8881302824d8 R13: dffffc0000000000 R14: 0000000000000060 R15: ffff88810cd681f8 FS: 00007fb7af0916c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000400000020000 CR3: 0000000119f49000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_mb_discard_group_preallocations+0xba2/0xde0 fs/ext4/mballoc.c:5012 ext4_mb_discard_preallocations fs/ext4/mballoc.c:5581 [inline] ext4_mb_discard_preallocations_should_retry+0x156/0x600 fs/ext4/mballoc.c:5602 ext4_mb_new_blocks+0x3120/0x4280 fs/ext4/mballoc.c:5805 ext4_alloc_branch fs/ext4/indirect.c:340 [inline] ext4_ind_map_blocks+0xd18/0x1f40 fs/ext4/indirect.c:635 ext4_map_blocks+0x919/0x1b20 fs/ext4/inode.c:676 _ext4_get_block+0x1da/0x4e0 fs/ext4/inode.c:817 ext4_get_block+0x39/0x50 fs/ext4/inode.c:834 ext4_block_write_begin+0x556/0x1150 fs/ext4/inode.c:1102 ext4_write_begin+0x638/0x1220 fs/ext4/ext4_jbd2.h:-1 ext4_da_write_begin+0x2fa/0xb60 fs/ext4/inode.c:2988 generic_perform_write+0x2ad/0x670 mm/filemap.c:3857 ext4_buffered_write_iter+0x4ed/0x670 fs/ext4/file.c:270 ext4_file_write_iter+0x18c/0x14c0 fs/ext4/file.c:664 call_write_iter include/linux/fs.h:2204 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x802/0xf70 fs/read_write.c:594 ksys_write+0x140/0x240 fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:656 x64_sys_call+0x8ef/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fb7af61f169 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb7af091038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fb7af837fa0 RCX: 00007fb7af61f169 RDX: 0000000000043451 RSI: 0000400000000200 RDI: 0000000000000007 RBP: 00007fb7af6a02a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb7af837fa0 R15: 00007ffcb5e23cd8 Modules linked in: ---[ end trace 821f89befcc5aadc ]--- RIP: 0010:ext4_mb_release_inode_pa+0xa75/0xa80 fs/ext4/mballoc.c:4866 Code: 80 c2 03 38 c2 0f 8c 3b fe ff ff 48 89 df 41 89 ce e8 ef 48 cc ff 44 89 f1 e9 28 fe ff ff e8 72 d7 8d ff 0f 0b e8 6b d7 8d ff <0f> 0b 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 53 48 89 RSP: 0018:ffffc90000c26860 EFLAGS: 00010293 RAX: ffffffff81dacd75 RBX: 00000000000000a0 RCX: ffff8881173a2780 RDX: 0000000000000000 RSI: 0000000000000060 RDI: 0000000000000000 RBP: ffffc90000c269b0 R08: 0000000000000004 R09: 0000000000000003 R10: fffff52000184d28 R11: 1ffff92000184d28 R12: ffff8881302824d8 R13: dffffc0000000000 R14: 0000000000000060 R15: ffff88810cd681f8 FS: 00007fb7af0916c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000400000020000 CR3: 0000000119f49000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400