EXT4-fs error (device loop4): ext4_ext_remove_space:2963: inode #17: comm syz-executor.4: pblk 0 bad header/extent: invalid extent entries - magic f30a, entries 1, max 4(4), depth 0(0) EXT4-fs error (device loop4) in ext4_setattr:5732: Corrupt filesystem EXT4-fs error (device loop3): ext4_map_blocks:739: inode #17: block 305: comm syz-executor.3: lblock 193 mapped to illegal pblock 305 (length 1) ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:2870! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 9638 Comm: syz-executor.3 Not tainted 4.19.204-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: 26 06 9f ff e9 b9 f6 ff ff e8 7c e9 7f ff e9 b4 f4 ff ff e8 72 e9 7f ff 48 89 ef e8 0a 06 9f ff e9 51 fa ff ff e8 60 e9 7f ff <0f> 0b e8 59 e9 7f ff 8b 54 24 1c 44 89 e6 48 89 ef e8 da d4 ff ff RSP: 0018:ffff88808ebc7588 EFLAGS: 00010293 RAX: ffff88809b2aa680 RBX: ffff88808ebc76c8 RCX: ffffffff81e295e3 RDX: 0000000000000000 RSI: ffffffff81e2a930 RDI: 0000000000000004 RBP: ffff88809a99ec00 R08: 0000000000000000 R09: 00000000fffff95a R10: 0000000000000004 R11: 0000000000000000 R12: 00000000fffff95a R13: ffff88809a9f0c40 R14: ffff88809a99f280 R15: 0000000000000001 FS: 00007f0c5f920700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe0e1080000 CR3: 000000009ae13000 CR4: 00000000001406f0 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:0x4665e9 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:00007f0c5f920188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 000000000d4ba0ff RSI: 00000000200009c0 RDI: 0000000000000007 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffcd8abac1f R14: 00007f0c5f920300 R15: 0000000000022000 Modules linked in: ---[ end trace aa43e4f52afcc7bc ]--- 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: 26 06 9f ff e9 b9 f6 ff ff e8 7c e9 7f ff e9 b4 f4 ff ff e8 72 e9 7f ff 48 89 ef e8 0a 06 9f ff e9 51 fa ff ff e8 60 e9 7f ff <0f> 0b e8 59 e9 7f ff 8b 54 24 1c 44 89 e6 48 89 ef e8 da d4 ff ff RSP: 0018:ffff88808ebc7588 EFLAGS: 00010293 EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue RAX: ffff88809b2aa680 RBX: ffff88808ebc76c8 RCX: ffffffff81e295e3 EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue RDX: 0000000000000000 RSI: ffffffff81e2a930 RDI: 0000000000000004 RBP: ffff88809a99ec00 R08: 0000000000000000 R09: 00000000fffff95a R10: 0000000000000004 R11: 0000000000000000 R12: 00000000fffff95a R13: ffff88809a9f0c40 R14: ffff88809a99f280 R15: 0000000000000001 FS: 00007f0c5f920700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f68725df080 CR3: 000000009ae13000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 4 bytes skipped: 0: e9 b9 f6 ff ff jmpq 0xfffff6be 5: e8 7c e9 7f ff callq 0xff7fe986 a: e9 b4 f4 ff ff jmpq 0xfffff4c3 f: e8 72 e9 7f ff callq 0xff7fe986 14: 48 89 ef mov %rbp,%rdi 17: e8 0a 06 9f ff callq 0xff9f0626 1c: e9 51 fa ff ff jmpq 0xfffffa72 21: e8 60 e9 7f ff callq 0xff7fe986 26: 0f 0b ud2 <-- trapping instruction 28: e8 59 e9 7f ff callq 0xff7fe986 2d: 8b 54 24 1c mov 0x1c(%rsp),%edx 31: 44 89 e6 mov %r12d,%esi 34: 48 89 ef mov %rbp,%rdi 37: e8 da d4 ff ff callq 0xffffd516