EXT4-fs error (device loop0): ext4_do_update_inode:5690: inode #18: comm kworker/u4:1: corrupted inode contents EXT4-fs error (device loop0): ext4_dirty_inode:6587: inode #18: comm kworker/u4:1: mark_inode_dirty error EXT4-fs error (device loop0): ext4_do_update_inode:5690: inode #18: comm kworker/u4:1: corrupted inode contents EXT4-fs error (device loop0): ext4_dirty_inode:6587: inode #18: comm kworker/u4:1: mark_inode_dirty error kworker/u4:1: attempt to access beyond end of device loop0: rw=1, sector=130, nr_sectors = 24 limit=64 EXT4-fs warning (device loop0): ext4_end_bio:372: I/O error 10 writing to inode 19 starting block 65) ------------[ cut here ]------------ kernel BUG at fs/ext4/mballoc.c:4780! 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+0x6c1/0x720 fs/ext4/mballoc.c:4780 Code: e8 24 83 a4 ff 48 ba 00 00 00 00 00 fc ff df e9 da fa ff ff e8 b0 b1 37 ff 90 0f 0b e8 a8 b1 37 ff 90 0f 0b e8 a0 b1 37 ff 90 <0f> 0b e8 98 b1 37 ff 90 0f 0b 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 RSP: 0018:ffffc9000027e5a8 EFLAGS: 00010293 RAX: ffffffff828e13c0 RBX: 00000000ffffffd8 RCX: ffff88801b3b4a00 RDX: 0000000000000000 RSI: 0000000000000034 RDI: 000000000000000c RBP: 1ffff11008eaa898 R08: ffff88804755a98b R09: 1ffff11008eab531 R10: dffffc0000000000 R11: ffffed1008eab532 R12: 0000000000000000 R13: 0000000000000034 R14: 1ffff11008eab534 R15: ffff88804755a9a0 FS: 0000000000000000(0000) GS:ffff88808c87b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f582586d700 CR3: 0000000042052000 CR4: 0000000000352ef0 Call Trace: ext4_mb_use_preallocated+0x660/0x13f0 fs/ext4/mballoc.c:4997 ext4_mb_new_blocks+0x5e2/0x46c0 fs/ext4/mballoc.c:6301 ext4_alloc_branch fs/ext4/indirect.c:340 [inline] ext4_ind_map_blocks+0xe96/0x2260 fs/ext4/indirect.c:635 ext4_map_create_blocks+0xc1/0x540 fs/ext4/inode.c:633 ext4_map_blocks+0x7cd/0x11d0 fs/ext4/inode.c:824 mpage_map_one_extent fs/ext4/inode.c:2396 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2490 [inline] ext4_do_writepages+0x18f3/0x4670 fs/ext4/inode.c:2948 ext4_writepages+0x241/0x3b0 fs/ext4/inode.c:3042 do_writepages+0x32e/0x550 mm/page-writeback.c:2571 __writeback_single_inode+0x133/0x10e0 fs/fs-writeback.c:1764 writeback_sb_inodes+0x979/0x19d0 fs/fs-writeback.c:2056 wb_writeback+0x445/0xb00 fs/fs-writeback.c:2241 wb_do_writeback fs/fs-writeback.c:2388 [inline] wb_workfn+0x3f8/0xf10 fs/fs-writeback.c:2428 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397 worker_thread+0xa53/0xfc0 kernel/workqueue.c:3478 kthread+0x389/0x470 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+0x6c1/0x720 fs/ext4/mballoc.c:4780 Code: e8 24 83 a4 ff 48 ba 00 00 00 00 00 fc ff df e9 da fa ff ff e8 b0 b1 37 ff 90 0f 0b e8 a8 b1 37 ff 90 0f 0b e8 a0 b1 37 ff 90 <0f> 0b e8 98 b1 37 ff 90 0f 0b 48 8b 0c 24 80 e1 07 80 c1 03 38 c1 RSP: 0018:ffffc9000027e5a8 EFLAGS: 00010293 RAX: ffffffff828e13c0 RBX: 00000000ffffffd8 RCX: ffff88801b3b4a00 RDX: 0000000000000000 RSI: 0000000000000034 RDI: 000000000000000c RBP: 1ffff11008eaa898 R08: ffff88804755a98b R09: 1ffff11008eab531 R10: dffffc0000000000 R11: ffffed1008eab532 R12: 0000000000000000 R13: 0000000000000034 R14: 1ffff11008eab534 R15: ffff88804755a9a0 FS: 0000000000000000(0000) GS:ffff88808c87b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f582586d700 CR3: 0000000042052000 CR4: 0000000000352ef0