------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2815! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 6305 Comm: syz-executor.3 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 RIP: 0010:ext4_do_writepages+0x2da6/0x3e80 fs/ext4/inode.c:2815 Code: a5 18 ff ff ff 48 c1 ea 03 80 3c 02 00 0f 84 08 e8 ff ff 48 8b bd 28 ff ff ff e8 f5 90 a1 ff e9 f7 e7 ff ff e8 5b 4d 2e ff 90 <0f> 0b e8 53 4d 2e ff 89 9d 00 ff ff ff 44 0f b6 ad 9b fe ff ff e9 RSP: 0018:ffffc9000494f4e0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888037640050 RCX: 0000000000000000 RDX: ffff888030450000 RSI: ffffffff82ddd1f5 RDI: ffff888030450000 RBP: ffffc9000494f6b0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000004000000000 R11: 0000000000000080 R12: ffff88803e0edaa8 R13: ffff888037640458 R14: ffff888037640240 R15: ffffc9000494f700 FS: 00007f77e3f716c0(0000) GS:ffff8880d5b59000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000040 CR3: 000000003d8cc000 CR4: 0000000000352ef0 Call Trace: ext4_writepages+0x34a/0x750 fs/ext4/inode.c:3032 do_writepages+0x278/0x600 mm/page-writeback.c:2560 filemap_writeback+0x22d/0x2e0 mm/filemap.c:387 filemap_fdatawrite_range mm/filemap.c:412 [inline] file_write_and_wait_range+0xcd/0x140 mm/filemap.c:786 ext4_sync_file+0x454/0xe20 fs/ext4/fsync.c:145 vfs_fsync_range+0x9b/0x190 fs/sync.c:186 generic_write_sync include/linux/fs.h:2686 [inline] ext4_buffered_write_iter+0x2a8/0x3c0 fs/ext4/file.c:360 ext4_file_write_iter+0xa0f/0x1d90 fs/ext4/file.c:796 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6af/0x1050 fs/read_write.c:687 ksys_write+0x12a/0x250 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f77e326e3b9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 d0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f77e3f71078 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f77e33abf80 RCX: 00007f77e326e3b9 RDX: 0000000000000009 RSI: 0000000020000f80 RDI: 0000000000000004 RBP: 00007f77e32cf4c2 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f77e33abf80 R15: 00007ffedab16e88 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_do_writepages+0x2da6/0x3e80 fs/ext4/inode.c:2815 Code: a5 18 ff ff ff 48 c1 ea 03 80 3c 02 00 0f 84 08 e8 ff ff 48 8b bd 28 ff ff ff e8 f5 90 a1 ff e9 f7 e7 ff ff e8 5b 4d 2e ff 90 <0f> 0b e8 53 4d 2e ff 89 9d 00 ff ff ff 44 0f b6 ad 9b fe ff ff e9 RSP: 0018:ffffc9000494f4e0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888037640050 RCX: 0000000000000000 RDX: ffff888030450000 RSI: ffffffff82ddd1f5 RDI: ffff888030450000 RBP: ffffc9000494f6b0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000004000000000 R11: 0000000000000080 R12: ffff88803e0edaa8 R13: ffff888037640458 R14: ffff888037640240 R15: ffffc9000494f700 FS: 00007f77e3f716c0(0000) GS:ffff8880d5b59000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000040 CR3: 000000003d8cc000 CR4: 0000000000352ef0