attempt to access beyond end of device loop1: rw=2049, want=78640, limit=40427 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:1359! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 15996 Comm: kworker/u4:3 Tainted: G W 5.4.225-syzkaller-00005-g66c3e3ab77a2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Workqueue: writeback wb_workfn (flush-7:1) RIP: 0010:end_page_writeback+0x18c/0x190 mm/filemap.c:1359 Code: 5d 41 5e 41 5f 5d e9 b3 fa ff ff e8 3e a1 e5 ff 48 ff cb e9 dd fe ff ff e8 31 a1 e5 ff 48 ff cb e9 46 ff ff ff e8 24 a1 e5 ff <0f> 0b 66 90 55 41 57 41 56 41 54 53 89 d5 89 f3 49 89 fe e8 0c a1 RSP: 0018:ffff8881daa5e868 EFLAGS: 00010293 RAX: ffffffff817d955c RBX: 0000000000000000 RCX: ffff8881f32c0000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff817d94ca R09: fffff94000f43ef1 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffffd4000f43ef1 R14: ffffea0007a1f788 R15: ffffea0007a1f780 FS: 0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0dc8c7c1e0 CR3: 00000001e7651000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_write_end_io+0x6a8/0xa60 fs/f2fs/data.c:341 generic_make_request_checks+0x2fd/0x18c0 block/blk-core.c:989 generic_make_request+0xe0/0xc90 block/blk-core.c:1029 submit_bio+0x143/0x650 block/blk-core.c:1203 f2fs_submit_merged_ipu_write+0x472/0x4f0 fs/f2fs/data.c:857 f2fs_write_single_data_page+0x13ae/0x19c0 fs/f2fs/data.c:2872 f2fs_write_cache_pages fs/f2fs/data.c:3083 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3234 [inline] f2fs_write_data_pages+0x1665/0x2c20 fs/f2fs/data.c:3261 do_writepages+0x12b/0x270 mm/page-writeback.c:2344 __writeback_single_inode+0xd9/0xcc0 fs/fs-writeback.c:1467 writeback_sb_inodes+0xa2c/0x1990 fs/fs-writeback.c:1730 wb_writeback+0x403/0xd70 fs/fs-writeback.c:1905 wb_do_writeback fs/fs-writeback.c:2050 [inline] wb_workfn+0x3a9/0x10c0 fs/fs-writeback.c:2091 process_one_work+0x765/0xd20 kernel/workqueue.c:2287 worker_thread+0xaef/0x1470 kernel/workqueue.c:2433 kthread+0x2da/0x360 kernel/kthread.c:288 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354 Modules linked in: ---[ end trace 54add38f9d40d3f8 ]--- RIP: 0010:end_page_writeback+0x18c/0x190 mm/filemap.c:1359 Code: 5d 41 5e 41 5f 5d e9 b3 fa ff ff e8 3e a1 e5 ff 48 ff cb e9 dd fe ff ff e8 31 a1 e5 ff 48 ff cb e9 46 ff ff ff e8 24 a1 e5 ff <0f> 0b 66 90 55 41 57 41 56 41 54 53 89 d5 89 f3 49 89 fe e8 0c a1 RSP: 0018:ffff8881daa5e868 EFLAGS: 00010293 RAX: ffffffff817d955c RBX: 0000000000000000 RCX: ffff8881f32c0000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff817d94ca R09: fffff94000f43ef1 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffffd4000f43ef1 R14: ffffea0007a1f788 R15: ffffea0007a1f780 FS: 0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f60a2ecd718 CR3: 00000001e7651000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400