------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2781! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 3 PID: 5395 Comm: syz-executor.0 Not tainted 6.2.0-rc3-syzkaller-00389-gf0f70ddb8f3b #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:ext4_do_writepages+0x29d6/0x36e0 fs/ext4/inode.c:2781 Code: 00 fc ff df 44 89 6c 24 24 48 c1 ea 03 80 3c 02 00 0f 84 91 e6 ff ff 48 8b 3c 24 e8 d4 79 aa ff e9 83 e6 ff ff e8 5a 47 5d ff <0f> 0b e8 53 47 5d ff 48 8b 84 24 c0 00 00 00 48 8d 78 40 48 89 f8 RSP: 0018:ffffc90002f27010 EFLAGS: 00010216 RAX: 000000000003807f RBX: 0000000000000001 RCX: ffffc90003c21000 RDX: 0000000000040000 RSI: ffffffff82233ca6 RDI: 0000000000000007 RBP: ffff888028ebe0d0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000005 R12: ffffc90002f27210 R13: 0000000000000001 R14: ffff888028ebe330 R15: 00000000000000bc FS: 00007f5114925700(0000) GS:ffff88802c900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6f8ab6075a CR3: 0000000015c7d000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_writepages+0x27c/0x5a0 fs/ext4/inode.c:2965 do_writepages+0x1af/0x690 mm/page-writeback.c:2581 filemap_fdatawrite_wbc mm/filemap.c:388 [inline] filemap_fdatawrite_wbc+0x147/0x1b0 mm/filemap.c:378 __filemap_fdatawrite_range+0xb8/0xf0 mm/filemap.c:421 file_write_and_wait_range+0xce/0x140 mm/filemap.c:777 ext4_sync_file+0x265/0x1150 fs/ext4/fsync.c:151 vfs_fsync_range+0x13e/0x230 fs/sync.c:188 generic_write_sync include/linux/fs.h:2885 [inline] generic_write_sync include/linux/fs.h:2882 [inline] ext4_buffered_write_iter+0x379/0x460 fs/ext4/file.c:292 ext4_file_write_iter+0x8bf/0x1710 fs/ext4/file.c:700 call_write_iter include/linux/fs.h:2189 [inline] do_iter_readv_writev+0x20b/0x3b0 fs/read_write.c:735 do_iter_write+0x182/0x700 fs/read_write.c:861 vfs_iter_write+0x74/0xa0 fs/read_write.c:902 iter_file_splice_write+0x745/0xc90 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0x114/0x180 fs/splice.c:931 splice_direct_to_actor+0x335/0x8a0 fs/splice.c:886 do_splice_direct+0x1ab/0x280 fs/splice.c:974 do_sendfile+0xb19/0x1270 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __x64_sys_sendfile64+0x1d0/0x210 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5113c8c0c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5114925168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f5113dabf80 RCX: 00007f5113c8c0c9 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000005 RBP: 00007f5113ce7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000001ffff R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe872ae08f R14: 00007f5114925300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_do_writepages+0x29d6/0x36e0 fs/ext4/inode.c:2781 Code: 00 fc ff df 44 89 6c 24 24 48 c1 ea 03 80 3c 02 00 0f 84 91 e6 ff ff 48 8b 3c 24 e8 d4 79 aa ff e9 83 e6 ff ff e8 5a 47 5d ff <0f> 0b e8 53 47 5d ff 48 8b 84 24 c0 00 00 00 48 8d 78 40 48 89 f8 RSP: 0018:ffffc90002f27010 EFLAGS: 00010216 RAX: 000000000003807f RBX: 0000000000000001 RCX: ffffc90003c21000 RDX: 0000000000040000 RSI: ffffffff82233ca6 RDI: 0000000000000007 RBP: ffff888028ebe0d0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000005 R12: ffffc90002f27210 R13: 0000000000000001 R14: ffff888028ebe330 R15: 00000000000000bc FS: 00007f5114925700(0000) GS:ffff88802c600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f987be8f9d0 CR3: 0000000015c7d000 CR4: 0000000000150ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400