------------[ cut here ]------------ kernel BUG at fs/ext4/fsync.c:103! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 16693 Comm: syz-executor5 Not tainted 4.9.141+ #1 task: ffff8801c50f5f00 task.stack: ffff8801a1890000 RIP: 0010:[] [] ext4_sync_file+0x808/0x10a0 fs/ext4/fsync.c:103 RSP: 0018:ffff8801db707b08 EFLAGS: 00010206 RAX: ffff8801c50f5f00 RBX: ffff8801c4d85aa0 RCX: dffffc0000000000 RDX: 0000000000000100 RSI: ffffffff816b53b8 RDI: ffff8801c50f6f38 RBP: ffff8801db707b50 R08: ffff8801c50f6820 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801c4d85ac8 R13: ffff8801c54d5200 R14: 0000000000000000 R15: ffff8801d53b9100 FS: 00007f1e7e9cc700(0000) GS:ffff8801db700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000021000000 CR3: 00000001cb239000 CR4: 00000000001606b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: 0000000041b58ab3 000000000000ffff 0000000000000000 ffff880100000001 ffff8801c54d5200 ffffffff816b4bb0 0000000000000001 ffff8801c54d5228 000000000000ffff ffff8801db707ba0 ffffffff815b195c dd1f3266df6cc8eb Call Trace: [] vfs_fsync_range+0x10c/0x260 fs/sync.c:195 [] generic_write_sync include/linux/fs.h:2607 [inline] [] dio_complete+0x512/0x6c0 fs/direct-io.c:282 [] dio_bio_end_aio+0x11c/0x370 fs/direct-io.c:323 [] bio_endio+0x1a5/0x1f0 block/bio.c:1781 [] req_bio_endio block/blk-core.c:157 [inline] [] blk_update_request+0x248/0x9b0 block/blk-core.c:2628 [] scsi_end_request+0x9d/0x5c0 drivers/scsi/scsi_lib.c:606 [] scsi_io_completion+0x273/0x17a0 drivers/scsi/scsi_lib.c:829 [] scsi_finish_command+0x3ba/0x530 drivers/scsi/scsi.c:607 [] scsi_softirq_done+0x250/0x360 drivers/scsi/scsi_lib.c:1567 [] blk_done_softirq+0x27d/0x3e0 block/blk-softirq.c:35 [] __do_softirq+0x20e/0x964 kernel/softirq.c:288 [] invoke_softirq kernel/softirq.c:368 [inline] [] irq_exit+0x11c/0x150 kernel/softirq.c:409 [] exiting_irq arch/x86/include/asm/apic.h:669 [inline] [] do_IRQ+0x10d/0x1c0 arch/x86/kernel/irq.c:252 [] common_interrupt+0x9d/0x9d arch/x86/entry/entry_64.S:461 [ 379.464445] [] ? ___might_sleep+0x12/0x260 kernel/sched/core.c:7950 [] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7945 [] lock_page include/linux/pagemap.h:460 [inline] [] mpage_prepare_extent_to_map+0x65e/0x9a0 fs/ext4/inode.c:2593 [] ext4_writepages+0xeee/0x2e00 fs/ext4/inode.c:2780 [] do_writepages+0xef/0x1d0 mm/page-writeback.c:2331 [] __filemap_fdatawrite_range+0x1a9/0x250 mm/filemap.c:390 [] filemap_write_and_wait_range+0x59/0xb0 mm/filemap.c:578 [] __generic_file_fsync+0x93/0x1a0 fs/libfs.c:974 [] ext4_sync_file+0x659/0x10a0 fs/ext4/fsync.c:116 [] vfs_fsync_range+0x10c/0x260 fs/sync.c:195 [] generic_write_sync include/linux/fs.h:2607 [inline] [] ext4_file_write_iter+0x81f/0xd70 fs/ext4/file.c:169 [] new_sync_write fs/read_write.c:496 [inline] [] __vfs_write+0x3d7/0x580 fs/read_write.c:509 [] vfs_write+0x187/0x520 fs/read_write.c:557 [] SYSC_write fs/read_write.c:604 [inline] [] SyS_write+0xd9/0x1c0 fs/read_write.c:596 [] do_syscall_64+0x19f/0x550 arch/x86/entry/common.c:285 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Code: 0f 85 59 07 00 00 49 8b bc 24 28 01 00 00 31 d2 be c0 00 40 02 e8 99 ec 42 00 45 85 ed 44 0f 44 e8 e9 de fa ff ff e8 a8 66 c6 ff <0f> 0b e8 a1 66 c6 ff 65 8b 15 6a 0d 96 7e 89 d2 48 0f a3 15 28 RIP [] ext4_sync_file+0x808/0x10a0 fs/ext4/fsync.c:103 RSP ---[ end trace a73021f1086ab9f1 ]---