EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs error (device loop0) in ext4_reserve_inode_write:5947: Out of memory EXT4-fs error (device loop0): ext4_get_group_desc:276: comm syz-executor.0: block_group >= groups_count - block_group = 4294960868, groups_count = 1 EXT4-fs error (device loop0) in ext4_reserve_inode_write:5947: Out of memory ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:2870! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 10501 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2870 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0x1460/0x1a90 fs/ext4/mballoc.c:1116 Code: 36 04 9f ff e9 b9 f6 ff ff e8 2c df 7f ff e9 b4 f4 ff ff e8 22 df 7f ff 48 89 ef e8 1a 04 9f ff e9 51 fa ff ff e8 10 df 7f ff <0f> 0b e8 09 df 7f ff 8b 54 24 1c 44 89 e6 48 89 ef e8 da d4 ff ff RSP: 0018:ffff88809fdb7588 EFLAGS: 00010293 RAX: ffff8880a2e22540 RBX: ffff88809fdb76c8 RCX: ffffffff81e29313 RDX: 0000000000000000 RSI: ffffffff81e2a660 RDI: 0000000000000004 RBP: ffff88809fb6c080 R08: 0000000000000000 R09: 00000000ffffe6e4 R10: 0000000000000004 R11: 0000000000074071 R12: 00000000ffffe6e4 R13: ffff88809ee04c40 R14: ffff88809fb6c700 R15: 0000000000000001 FS: 00007f38ad778700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d95e7b78e0 CR3: 000000009beb4000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_discard_preallocations+0xaf4/0xfb0 fs/ext4/mballoc.c:4090 ext4_truncate+0x74e/0x1380 fs/ext4/inode.c:4554 ext4_truncate_failed_write fs/ext4/truncate.h:20 [inline] ext4_write_begin+0xb37/0x1610 fs/ext4/inode.c:1368 ext4_da_write_begin+0x737/0x10e0 fs/ext4/inode.c:3051 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295 ext4_file_write_iter+0x2fe/0xf20 fs/ext4/file.c:272 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x51b/0x770 fs/read_write.c:487 vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f38ae4060c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f38ad778168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f38ae525f80 RCX: 00007f38ae4060c9 RDX: 000000000208e24b RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 00007f38ae461ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffeb107480f R14: 00007f38ad778300 R15: 0000000000022000 Modules linked in: ---[ end trace 34e7d667cd96a144 ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2870 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0x1460/0x1a90 fs/ext4/mballoc.c:1116 Code: 36 04 9f ff e9 b9 f6 ff ff e8 2c df 7f ff e9 b4 f4 ff ff e8 22 df 7f ff 48 89 ef e8 1a 04 9f ff e9 51 fa ff ff e8 10 df 7f ff <0f> 0b e8 09 df 7f ff 8b 54 24 1c 44 89 e6 48 89 ef e8 da d4 ff ff RSP: 0018:ffff88809fdb7588 EFLAGS: 00010293 RAX: ffff8880a2e22540 RBX: ffff88809fdb76c8 RCX: ffffffff81e29313 RDX: 0000000000000000 RSI: ffffffff81e2a660 RDI: 0000000000000004 RBP: ffff88809fb6c080 R08: 0000000000000000 R09: 00000000ffffe6e4 R10: 0000000000000004 R11: 0000000000074071 R12: 00000000ffffe6e4 R13: ffff88809ee04c40 R14: ffff88809fb6c700 R15: 0000000000000001 FS: 00007f38ad778700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d95e7b78e0 CR3: 000000009beb4000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400