attempt to access beyond end of device loop4: rw=2049, want=45104, limit=40427 attempt to access beyond end of device loop4: rw=2049, want=78520, limit=40427 ------------[ cut here ]------------ kernel BUG at mm/filemap.c:1604! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 11150 Comm: kworker/u4:16 Not tainted 5.15.104-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/17/2023 Workqueue: writeback wb_workfn (flush-7:4) RIP: 0010:end_page_writeback+0x501/0x690 mm/filemap.c:1604 Code: 00 00 e8 f2 6a d8 ff 4d 89 fd e9 45 01 00 00 e8 e5 6a d8 ff 4c 89 e7 48 c7 c6 a0 d9 92 8a e8 a6 33 0e 00 0f 0b e8 cf 6a d8 ff <0f> 0b e8 c8 6a d8 ff 4c 89 ff 48 c7 c6 60 d4 92 8a e8 89 33 0e 00 RSP: 0018:ffffc90008d4e6b0 EFLAGS: 00010293 RAX: ffffffff81a74d11 RBX: 0000000000000000 RCX: ffff888039888000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000081 R08: ffffffff81a74ac1 R09: fffffbfff1bc62ee R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001e77780 R13: dffffc0000000000 R14: ffffea0001e77788 R15: ffffea0001e77780 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c029e35760 CR3: 0000000019c6f000 CR4: 00000000003506e0 Call Trace: f2fs_write_end_io+0x651/0xdb0 fs/f2fs/data.c:347 submit_bio_checks+0x323/0x1920 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+0x1277/0x1830 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+0x15b/0xe30 fs/fs-writeback.c:1622 writeback_sb_inodes+0xbf0/0x1a50 fs/fs-writeback.c:1905 wb_writeback+0x451/0xc50 fs/fs-writeback.c:2079 wb_do_writeback fs/fs-writeback.c:2222 [inline] wb_workfn+0x46c/0x1130 fs/fs-writeback.c:2263 process_one_work+0x8a1/0x10c0 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 4afdd8773abd6765 ]--- RIP: 0010:end_page_writeback+0x501/0x690 mm/filemap.c:1604 Code: 00 00 e8 f2 6a d8 ff 4d 89 fd e9 45 01 00 00 e8 e5 6a d8 ff 4c 89 e7 48 c7 c6 a0 d9 92 8a e8 a6 33 0e 00 0f 0b e8 cf 6a d8 ff <0f> 0b e8 c8 6a d8 ff 4c 89 ff 48 c7 c6 60 d4 92 8a e8 89 33 0e 00 RSP: 0018:ffffc90008d4e6b0 EFLAGS: 00010293 RAX: ffffffff81a74d11 RBX: 0000000000000000 RCX: ffff888039888000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000081 R08: ffffffff81a74ac1 R09: fffffbfff1bc62ee R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001e77780 R13: dffffc0000000000 R14: ffffea0001e77788 R15: ffffea0001e77780 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c029e35760 CR3: 0000000019c6f000 CR4: 00000000003506e0