EXT4-fs (loop0): pa ffff888123912e70: logic 0, phys. 193, len 32 EXT4-fs error (device loop0): ext4_mb_release_inode_pa:4881: group 0, free 13, pa_free 16 ------------[ cut here ]------------ kernel BUG at fs/ext4/mballoc.c:4854! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 315 Comm: syz-executor386 Not tainted 6.1.118-syzkaller-00019-ge09bed30088f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:ext4_mb_release_inode_pa+0xd97/0xda0 fs/ext4/mballoc.c:4854 Code: 7d ff 48 c7 c7 c0 4b 2c 87 4c 89 f6 48 89 da e8 cf 4a aa 00 e9 9f f4 ff ff e8 a5 f2 7d ff 0f 0b e8 8e f5 23 03 e8 99 f2 7d ff <0f> 0b 0f 1f 80 00 00 00 00 55 48 89 e5 41 57 41 56 53 49 89 fe 49 RSP: 0018:ffffc90001006a00 EFLAGS: 00010293 RAX: ffffffff81f793a7 RBX: 0000000000000060 RCX: ffff888111870000 RDX: 0000000000000000 RSI: 0000000000000060 RDI: 0000000000000000 RBP: ffffc90001006b50 R08: ffffffff81f788cd R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffff92000200d58 R14: 00000000000000ed R15: dffffc0000000000 FS: 00007f905232e6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020020000 CR3: 0000000127010000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_mb_discard_group_preallocations+0xbe8/0xe50 fs/ext4/mballoc.c:5000 ext4_mb_discard_preallocations fs/ext4/mballoc.c:5569 [inline] ext4_mb_discard_preallocations_should_retry+0x1c3/0x880 fs/ext4/mballoc.c:5590 ext4_mb_new_blocks+0x3584/0x48a0 fs/ext4/mballoc.c:5793 ext4_alloc_branch fs/ext4/indirect.c:340 [inline] ext4_ind_map_blocks+0xfaf/0x2770 fs/ext4/indirect.c:635 ext4_map_blocks+0x9bd/0x1ca0 fs/ext4/inode.c:680 _ext4_get_block+0x23b/0x660 fs/ext4/inode.c:821 ext4_get_block+0x39/0x50 fs/ext4/inode.c:838 ext4_block_write_begin+0x55e/0x1200 fs/ext4/inode.c:1123 ext4_write_begin+0x5e0/0xfb0 ext4_da_write_begin+0x2ff/0x920 fs/ext4/inode.c:3000 generic_perform_write+0x318/0x780 mm/filemap.c:3877 ext4_buffered_write_iter+0x360/0x640 fs/ext4/file.c:285 ext4_file_write_iter+0x194/0x1570 call_write_iter include/linux/fs.h:2274 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0xaf6/0xed0 fs/read_write.c:584 ksys_write+0x199/0x2c0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:646 x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f905237cbc9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 1e 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f905232e218 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f9052404488 RCX: 00007f905237cbc9 RDX: 000000000208e24b RSI: 0000000020000240 RDI: 0000000000000006 RBP: 00007f9052404480 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f90523c9b4c R13: 00007f90523c904d R14: 0000000000003d61 R15: 65646f6d746f6f72 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_mb_release_inode_pa+0xd97/0xda0 fs/ext4/mballoc.c:4854 Code: 7d ff 48 c7 c7 c0 4b 2c 87 4c 89 f6 48 89 da e8 cf 4a aa 00 e9 9f f4 ff ff e8 a5 f2 7d ff 0f 0b e8 8e f5 23 03 e8 99 f2 7d ff <0f> 0b 0f 1f 80 00 00 00 00 55 48 89 e5 41 57 41 56 53 49 89 fe 49 RSP: 0018:ffffc90001006a00 EFLAGS: 00010293 RAX: ffffffff81f793a7 RBX: 0000000000000060 RCX: ffff888111870000 RDX: 0000000000000000 RSI: 0000000000000060 RDI: 0000000000000000 RBP: ffffc90001006b50 R08: ffffffff81f788cd R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffff92000200d58 R14: 00000000000000ed R15: dffffc0000000000 FS: 00007f905232e6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020020000 CR3: 0000000127010000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400