loop0: detected capacity change from 0 to 2048 EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none. EXT4-fs error (device loop0): ext4_mb_generate_buddy:1220: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters ------------[ cut here ]------------ kernel BUG at fs/ext4/inline.c:235! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted 6.13.0-rc2-syzkaller-00031-gf92f4749861b #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:235 [inline] RIP: 0010:ext4_write_inline_data_end+0xdc7/0xdd0 fs/ext4/inline.c:774 Code: 31 1d 8c e8 8b 3b 91 ff 90 0f 0b e8 53 7a 47 ff 48 8b 7c 24 10 48 c7 c6 a0 32 1d 8c e8 72 3b 91 ff 90 0f 0b e8 3a 7a 47 ff 90 <0f> 0b 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d3a7860 EFLAGS: 00010283 RAX: ffffffff8257e406 RBX: 000000000000003c RCX: 0000000000100000 RDX: ffffc9000e6da000 RSI: 0000000000000336 RDI: 0000000000000337 RBP: ffffc9000d3a7988 R08: ffffffff8257d9e7 R09: 1ffff11003bd5070 R10: dffffc0000000000 R11: ffffed1003bd5071 R12: 0000010000000005 R13: dffffc0000000000 R14: ffff888043ee65c0 R15: 0000010000000006 FS: 00007f1d599bd6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1d4c87fe00 CR3: 000000004320a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: generic_perform_write+0x6f6/0x990 mm/filemap.c:4070 ext4_buffered_write_iter+0xc5/0x350 fs/ext4/file.c:299 ext4_file_write_iter+0x892/0x1c50 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_pwrite64 fs/read_write.c:786 [inline] __do_sys_pwrite64 fs/read_write.c:794 [inline] __se_sys_pwrite64 fs/read_write.c:791 [inline] __x64_sys_pwrite64+0x1ac/0x240 fs/read_write.c:791 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1d58b7ff19 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:00007f1d599bd058 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f1d58d45fa0 RCX: 00007f1d58b7ff19 RDX: 0000000000000001 RSI: 0000000020000300 RDI: 0000000000000006 RBP: 00007f1d58bf3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000010000000005 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1d58d45fa0 R15: 00007ffcc46cad98 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:235 [inline] RIP: 0010:ext4_write_inline_data_end+0xdc7/0xdd0 fs/ext4/inline.c:774 Code: 31 1d 8c e8 8b 3b 91 ff 90 0f 0b e8 53 7a 47 ff 48 8b 7c 24 10 48 c7 c6 a0 32 1d 8c e8 72 3b 91 ff 90 0f 0b e8 3a 7a 47 ff 90 <0f> 0b 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d3a7860 EFLAGS: 00010283 RAX: ffffffff8257e406 RBX: 000000000000003c RCX: 0000000000100000 RDX: ffffc9000e6da000 RSI: 0000000000000336 RDI: 0000000000000337 RBP: ffffc9000d3a7988 R08: ffffffff8257d9e7 R09: 1ffff11003bd5070 R10: dffffc0000000000 R11: ffffed1003bd5071 R12: 0000010000000005 R13: dffffc0000000000 R14: ffff888043ee65c0 R15: 0000010000000006 FS: 00007f1d599bd6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1d5999bfe0 CR3: 000000004320a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400