EXT4-fs error (device loop4) in ext4_reserve_inode_write:5947: Out of memory netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. EXT4-fs error (device loop4): ext4_get_group_desc:276: comm syz-executor.4: block_group >= groups_count - block_group = 4294962951, groups_count = 1 EXT4-fs error (device loop4) 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: 14285 Comm: syz-executor.4 Not tainted 4.19.208-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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: 06 05 9f ff e9 b9 f6 ff ff e8 fc e1 7f ff e9 b4 f4 ff ff e8 f2 e1 7f ff 48 89 ef e8 ea 04 9f ff e9 51 fa ff ff e8 e0 e1 7f ff <0f> 0b e8 d9 e1 7f ff 8b 54 24 1c 44 89 e6 48 89 ef e8 da d4 ff ff RSP: 0018:ffff88803837f588 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff88803837f6c8 RCX: ffffc9000e56c000 RDX: 0000000000040000 RSI: ffffffff81e2a240 RDI: 0000000000000004 RBP: ffff8880377b4140 R08: 0000000000000000 R09: 00000000ffffef07 R10: 0000000000000004 R11: 0000000000000000 R12: 00000000ffffef07 R13: ffff8880413a4180 R14: ffff8880377b47c0 R15: 0000000000000001 FS: 00007f7b6c219700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7b6c194ff8 CR3: 000000009acb8000 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:0x7f7b6eca28d9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7b6c219188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7b6eda6f60 RCX: 00007f7b6eca28d9 RDX: 000000000d4ba0ff RSI: 00000000200009c0 RDI: 0000000000000004 RBP: 00007f7b6ecfccb4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe17364a8f R14: 00007f7b6c219300 R15: 0000000000022000 Modules linked in: ---[ end trace e3d53370ee34f88c ]--- 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: 06 05 9f ff e9 b9 f6 ff ff e8 fc e1 7f ff e9 b4 f4 ff ff e8 f2 e1 7f ff 48 89 ef e8 ea 04 9f ff e9 51 fa ff ff e8 e0 e1 7f ff <0f> 0b e8 d9 e1 7f ff 8b 54 24 1c 44 89 e6 48 89 ef e8 da d4 ff ff RSP: 0018:ffff88803837f588 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff88803837f6c8 RCX: ffffc9000e56c000 RDX: 0000000000040000 RSI: ffffffff81e2a240 RDI: 0000000000000004 RBP: ffff8880377b4140 R08: 0000000000000000 R09: 00000000ffffef07 R10: 0000000000000004 R11: 0000000000000000 R12: 00000000ffffef07 R13: ffff8880413a4180 R14: ffff8880377b47c0 R15: 0000000000000001 FS: 00007f7b6c219700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7b6c194ff8 CR3: 000000009acb8000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400