EXT4-fs error (device loop2) in ext4_reserve_inode_write:5866: Out of memory EXT4-fs error (device loop2) in ext4_reserve_inode_write:5866: Out of memory EXT4-fs error (device loop2): __ext4_get_inode_loc:4578: comm syz-executor.2: Invalid inode table block 8390883544060490606 in block_group 0 EXT4-fs error (device loop2) in ext4_reserve_inode_write:5866: Corrupt filesystem ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:2849! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 11698 Comm: syz-executor.2 Not tainted 4.14.304-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 task: ffff88809d980540 task.stack: ffff8880a2a18000 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:ffff8880a2a1f6c8 EFLAGS: 00010297 RAX: ffff88809d980540 RBX: ffff8880a2a1f7c8 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffff8880af860700 RBP: 00000000fffff233 R08: 0000000000000001 R09: 0000000000000005 R10: 0000000000000000 R11: ffff88809d980540 R12: ffff8880a9a5c700 R13: ffff8880870ea6b0 R14: ffff8880af8606c0 R15: ffff8880a9a5cd80 FS: 00007f5e64995700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562acc65d8e0 CR3: 00000000a9461000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_discard_preallocations+0x94b/0xdf0 fs/ext4/mballoc.c:4127 ext4_truncate+0x634/0x1190 fs/ext4/inode.c:4509 ext4_truncate_failed_write fs/ext4/truncate.h:16 [inline] ext4_write_begin+0x92a/0x12f0 fs/ext4/inode.c:1374 ext4_da_write_begin+0x628/0xe70 fs/ext4/inode.c:3097 generic_perform_write+0x1d5/0x430 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:1780 [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+0x5e/0xd3 RIP: 0033:0x7f5e656230c9 RSP: 002b:00007f5e64995168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f5e65742f80 RCX: 00007f5e656230c9 RDX: 000000000208e24b RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 00007f5e6567eae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc49e3d53f R14: 00007f5e64995300 R15: 0000000000022000 Code: e8 e9 0a af ff e9 90 f8 ff ff e8 2f c5 97 ff e9 f5 f6 ff ff e8 25 c5 97 ff 48 89 ef e8 cd 0a af ff e9 3d fb ff ff e8 13 c5 97 ff <0f> 0b e8 0c c5 97 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: ffff8880a2a1f6c8 RIP: ext4_mb_load_buddy_gfp+0x10dd/0x16c0 fs/ext4/mballoc.c:1128 RSP: ffff8880a2a1f6c8 ---[ end trace 19d587d556975e46 ]---