EXT4-fs error (device loop5): ext4_mb_discard_group_preallocations:3952: comm syz-executor.5: Error -117 reading block bitmap for 0 ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:2849! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 10199 Comm: syz-executor.5 Not tainted 4.14.232-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8880551ca1c0 task.stack: ffff888055238000 RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2849 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0x10dd/0x16c0 fs/ext4/mballoc.c:1128 RSP: 0018:ffff88805523f6c8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff88805523f7c8 RCX: ffffc900086e3000 RDX: 0000000000040000 RSI: ffffffff81bd19ed RDI: ffff888054d92b00 RBP: 00000000fffe7b04 R08: 0000000000000001 R09: 0000000000000005 R10: 0000000000000000 R11: ffff8880551ca1c0 R12: ffff888054dc0b00 R13: ffff888041031630 R14: ffff888054d92ac0 R15: ffff888054dc1180 FS: 00007f1f7a6c4700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000541198 CR3: 000000009c242000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_discard_preallocations+0x94b/0xdf0 fs/ext4/mballoc.c:4117 ext4_truncate+0x634/0x1190 fs/ext4/inode.c:4461 ext4_truncate_failed_write fs/ext4/truncate.h:16 [inline] ext4_write_begin+0x906/0x1260 fs/ext4/inode.c:1367 ext4_da_write_begin+0x628/0xe70 fs/ext4/inode.c:3058 generic_perform_write+0x1c9/0x420 mm/filemap.c:3055 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3180 ext4_file_write_iter+0x276/0xd20 fs/ext4/file.c:270 call_write_iter include/linux/fs.h:1778 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44c/0x630 fs/read_write.c:482 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x4665f9 RSP: 002b:00007f1f7a6c4188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9 RDX: 000000000208e24b RSI: 00000000200001c0 RDI: 0000000000000006 RBP: 00000000004bfce1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007fff0814eedf R14: 00007f1f7a6c4300 R15: 0000000000022000 Code: e8 a9 44 af ff e9 90 f8 ff ff e8 9f 0b 98 ff e9 f5 f6 ff ff e8 95 0b 98 ff 48 89 ef e8 8d 44 af ff e9 3d fb ff ff e8 83 0b 98 ff <0f> 0b e8 7c 0b 98 ff 8b 54 24 28 89 ee 4c 89 e7 e8 ce db ff ff RIP: ext4_get_group_info fs/ext4/ext4.h:2849 [inline] RSP: ffff88805523f6c8 RIP: ext4_mb_load_buddy_gfp+0x10dd/0x16c0 fs/ext4/mballoc.c:1128 RSP: ffff88805523f6c8 ---[ end trace 3aaaf579f2c9b273 ]---