attempt to access beyond end of device loop1: rw=2049, want=81080, limit=40427 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:1497! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 543 Comm: kworker/u4:4 Not tainted 5.4.268-syzkaller-00003-g2d5d8240a7cb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: writeback wb_workfn (flush-7:1) RIP: 0010:end_page_writeback+0x26e/0x270 mm/filemap.c:1497 Code: 48 ff cb e9 d3 fe ff ff e8 3f 18 e5 ff 48 ff cb 49 89 df e9 79 ff ff ff e8 2f 18 e5 ff 48 ff cb e9 6c fe ff ff e8 22 18 e5 ff <0f> 0b 55 41 57 41 56 41 54 53 89 d5 89 f3 49 89 fe e8 0c 18 e5 ff RSP: 0018:ffff8881ea5e6808 EFLAGS: 00010293 RAX: ffffffff817f2efe RBX: 0000000000000000 RCX: ffff8881ecd78000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff817f2dd4 R09: fffff94000f22909 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffffd4000f22909 R14: ffffea0007914848 R15: ffffea0007914840 FS: 0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555555ccd818 CR3: 00000001d619e000 CR4: 00000000003406b0 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+0x31e/0x1c20 block/blk-core.c:985 generic_make_request+0xe0/0xc90 block/blk-core.c:1025 submit_bio+0x1bf/0x6d0 block/blk-core.c:1199 f2fs_submit_merged_ipu_write+0x472/0x4f0 fs/f2fs/data.c:857 f2fs_write_single_data_page+0x13f5/0x1a00 fs/f2fs/data.c:2873 f2fs_write_cache_pages fs/f2fs/data.c:3084 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3235 [inline] f2fs_write_data_pages+0x169a/0x2c80 fs/f2fs/data.c:3262 do_writepages+0x12b/0x270 mm/page-writeback.c:2344 __writeback_single_inode+0xd9/0xcc0 fs/fs-writeback.c:1467 writeback_sb_inodes+0x9e0/0x1800 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+0x3b6/0x1230 fs/fs-writeback.c:2091 process_one_work+0x765/0xd20 kernel/workqueue.c:2290 worker_thread+0xaef/0x1470 kernel/workqueue.c:2436 kthread+0x2da/0x360 kernel/kthread.c:288 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354 Modules linked in: ---[ end trace 418e9a53e303d6bb ]--- RIP: 0010:end_page_writeback+0x26e/0x270 mm/filemap.c:1497 Code: 48 ff cb e9 d3 fe ff ff e8 3f 18 e5 ff 48 ff cb 49 89 df e9 79 ff ff ff e8 2f 18 e5 ff 48 ff cb e9 6c fe ff ff e8 22 18 e5 ff <0f> 0b 55 41 57 41 56 41 54 53 89 d5 89 f3 49 89 fe e8 0c 18 e5 ff RSP: 0018:ffff8881ea5e6808 EFLAGS: 00010293 RAX: ffffffff817f2efe RBX: 0000000000000000 RCX: ffff8881ecd78000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff817f2dd4 R09: fffff94000f22909 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffffd4000f22909 R14: ffffea0007914848 R15: ffffea0007914840 FS: 0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe1e960008 CR3: 00000001ee1a2000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400