attempt to access beyond end of device loop0: rw=2049, want=45104, limit=40427 attempt to access beyond end of device loop0: rw=2049, want=78112, limit=40427 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:1604! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 703 Comm: kworker/u4:3 Not tainted 5.15.103-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Workqueue: writeback wb_workfn (flush-7:0) RIP: 0010:end_page_writeback+0x501/0x690 mm/filemap.c:1604 Code: 00 00 e8 82 5d d8 ff 4d 89 fd e9 45 01 00 00 e8 75 5d d8 ff 4c 89 e7 48 c7 c6 60 ed 92 8a e8 96 5d 0e 00 0f 0b e8 5f 5d d8 ff <0f> 0b e8 58 5d d8 ff 4c 89 ff 48 c7 c6 80 e8 92 8a e8 79 5d 0e 00 RSP: 0018:ffffc90003d1e6d0 EFLAGS: 00010293 RAX: ffffffff81a81b71 RBX: 0000000000000000 RCX: ffff88801abd0000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000081 R08: ffffffff81a81921 R09: fffffbfff1bc7116 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001b8c4c0 R13: dffffc0000000000 R14: ffffea0001b8c4c8 R15: ffffea0001b8c4c0 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d373f34c10 CR3: 00000000233c6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_write_end_io+0x651/0xdb0 fs/f2fs/data.c:347 submit_bio_checks+0x323/0x1ac0 block/blk-core.c:905 __submit_bio+0x5a1/0x850 block/blk-core.c:917 __submit_bio_noacct_mq block/blk-core.c:1003 [inline] submit_bio_noacct+0x955/0xb30 block/blk-core.c:1033 submit_bio+0x2dd/0x560 block/blk-core.c:1095 f2fs_submit_merged_ipu_write+0x47c/0x4f0 fs/f2fs/data.c:853 f2fs_write_single_data_page+0x1386/0x1980 fs/f2fs/data.c:2870 f2fs_write_cache_pages fs/f2fs/data.c:3079 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3230 [inline] f2fs_write_data_pages+0x17de/0x2c00 fs/f2fs/data.c:3257 do_writepages+0x481/0x730 mm/page-writeback.c:2364 __writeback_single_inode+0x1ba/0x1210 fs/fs-writeback.c:1622 writeback_sb_inodes+0xbd8/0x1ac0 fs/fs-writeback.c:1905 wb_writeback+0x4b8/0xeb0 fs/fs-writeback.c:2079 wb_do_writeback fs/fs-writeback.c:2222 [inline] wb_workfn+0x49a/0x10e0 fs/fs-writeback.c:2263 process_one_work+0x90d/0x1270 kernel/workqueue.c:2306 worker_thread+0xaca/0x1280 kernel/workqueue.c:2453 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Modules linked in: ---[ end trace 720a042a72bd035c ]--- RIP: 0010:end_page_writeback+0x501/0x690 mm/filemap.c:1604 Code: 00 00 e8 82 5d d8 ff 4d 89 fd e9 45 01 00 00 e8 75 5d d8 ff 4c 89 e7 48 c7 c6 60 ed 92 8a e8 96 5d 0e 00 0f 0b e8 5f 5d d8 ff <0f> 0b e8 58 5d d8 ff 4c 89 ff 48 c7 c6 80 e8 92 8a e8 79 5d 0e 00 RSP: 0018:ffffc90003d1e6d0 EFLAGS: 00010293 RAX: ffffffff81a81b71 RBX: 0000000000000000 RCX: ffff88801abd0000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000081 R08: ffffffff81a81921 R09: fffffbfff1bc7116 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001b8c4c0 R13: dffffc0000000000 R14: ffffea0001b8c4c8 R15: ffffea0001b8c4c0 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d373f34c10 CR3: 00000000233c6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400