EXT4-fs error (device loop0): ext4_do_update_inode:6679: inode #15: comm kworker/u4:1: corrupted inode contents EXT4-fs error (device loop0): ext4_dirty_inode:7653: inode #15: comm kworker/u4:1: mark_inode_dirty error EXT4-fs error (device loop0): ext4_do_update_inode:6679: inode #15: comm kworker/u4:1: corrupted inode contents EXT4-fs error (device loop0): ext4_dirty_inode:7653: inode #15: comm kworker/u4:1: mark_inode_dirty error EXT4-fs error (device loop0): ext4_do_update_inode:6679: inode #15: comm kworker/u4:1: corrupted inode contents EXT4-fs error (device loop0): ext4_dirty_inode:7653: inode #15: comm kworker/u4:1: mark_inode_dirty error ------------[ cut here ]------------ kernel BUG at fs/ext4/mballoc.c:4779! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 14 Comm: kworker/u4:1 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: writeback wb_workfn (flush-7:0) RIP: 0010:ext4_mb_use_inode_pa+0x6bf/0x720 fs/ext4/mballoc.c:4779 Code: e8 06 0c a0 ff 48 ba 00 00 00 00 00 fc ff df e9 d7 fa ff ff e8 02 52 26 ff 90 0f 0b e8 fa 51 26 ff 90 0f 0b e8 f2 51 26 ff 90 <0f> 0b e8 ea 51 26 ff 90 0f 0b 48 8b 0c 24 48 83 c1 54 80 e1 07 80 RSP: 0018:ffffc9000027e4e0 EFLAGS: 00010293 RAX: ffffffff82a2e97e RBX: 00000000ffffffef RCX: ffff88801d7e4b00 RDX: 0000000000000000 RSI: 0000000000000016 RDI: 0000000000000005 RBP: 1ffff11008b35807 R08: ffff8880459b0a73 R09: 1ffff11008b3614e R10: dffffc0000000000 R11: ffffed1008b3614f R12: 0000000000000000 R13: 0000000000000016 R14: 1ffff11008b36151 R15: ffff8880459b0a88 FS: 0000000000000000(0000) GS:ffff88808a9f0000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f09844b5b00 CR3: 000000001f9cc000 CR4: 0000000000352ef0 Call Trace: ext4_mb_use_preallocated+0x638/0x13e0 fs/ext4/mballoc.c:4996 ext4_mb_new_blocks+0x596/0x4520 fs/ext4/mballoc.c:6300 ext4_alloc_branch fs/ext4/indirect.c:340 [inline] ext4_ind_map_blocks+0xef3/0x2300 fs/ext4/indirect.c:652 ext4_map_create_blocks+0xbb/0x530 fs/ext4/inode.c:694 ext4_map_blocks+0xe8e/0x1c60 fs/ext4/inode.c:937 mpage_map_one_extent fs/ext4/inode.c:2500 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2596 [inline] ext4_do_writepages+0x1978/0x44a0 fs/ext4/inode.c:3072 ext4_writepages+0x1fe/0x4e0 fs/ext4/inode.c:3166 do_writepages+0x338/0x560 mm/page-writeback.c:2562 __writeback_single_inode+0x136/0x1220 fs/fs-writeback.c:1809 writeback_sb_inodes+0x9de/0x1af0 fs/fs-writeback.c:2120 __writeback_inodes_wb+0x114/0x250 fs/fs-writeback.c:2196 wb_writeback+0x42f/0xad0 fs/fs-writeback.c:2307 wb_check_start_all fs/fs-writeback.c:2433 [inline] wb_do_writeback fs/fs-writeback.c:2480 [inline] wb_workfn+0x980/0x10f0 fs/fs-writeback.c:2518 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3578 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3659 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_mb_use_inode_pa+0x6bf/0x720 fs/ext4/mballoc.c:4779 Code: e8 06 0c a0 ff 48 ba 00 00 00 00 00 fc ff df e9 d7 fa ff ff e8 02 52 26 ff 90 0f 0b e8 fa 51 26 ff 90 0f 0b e8 f2 51 26 ff 90 <0f> 0b e8 ea 51 26 ff 90 0f 0b 48 8b 0c 24 48 83 c1 54 80 e1 07 80 RSP: 0018:ffffc9000027e4e0 EFLAGS: 00010293 RAX: ffffffff82a2e97e RBX: 00000000ffffffef RCX: ffff88801d7e4b00 RDX: 0000000000000000 RSI: 0000000000000016 RDI: 0000000000000005 RBP: 1ffff11008b35807 R08: ffff8880459b0a73 R09: 1ffff11008b3614e R10: dffffc0000000000 R11: ffffed1008b3614f R12: 0000000000000000 R13: 0000000000000016 R14: 1ffff11008b36151 R15: ffff8880459b0a88 FS: 0000000000000000(0000) GS:ffff88808a9f0000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f09844b5b00 CR3: 000000001f9cc000 CR4: 0000000000352ef0