syz.0.146: attempt to access beyond end of device loop0: rw=2049, sector=77824, nr_sectors = 128 limit=40427 ------------[ cut here ]------------ kernel BUG at fs/f2fs/inode.c:944! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 6758 Comm: syz.0.146 Not tainted 6.14.0-next-20250404-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:f2fs_evict_inode+0x1832/0x1850 fs/f2fs/inode.c:944 Code: ff 89 de e8 30 e3 93 fd 40 84 ed 75 2d e8 26 e0 93 fd 4c 8b 74 24 08 e9 a5 e9 ff ff e8 17 e0 93 fd 90 0f 0b e8 0f e0 93 fd 90 <0f> 0b e8 07 e0 93 fd 90 0f 0b 90 e9 fa fe ff ff e8 f9 df 93 fd e8 RSP: 0000:ffffc90004d67878 EFLAGS: 00010283 RAX: ffffffff842f7d21 RBX: 0000000000000002 RCX: 0000000000080000 RDX: ffffc900047f2000 RSI: 000000000006e1aa RDI: 000000000006e1ab RBP: 0000000000000000 R08: ffffffff842f76ea R09: 1ffff1100b6cdbc0 R10: dffffc0000000000 R11: ffffed100b6cdbc1 R12: ffff88805b66d960 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88805a668000 FS: 00007f472d58a6c0(0000) GS:ffff88812508f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055c73ca0f35a CR3: 0000000033776000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: evict+0x4f9/0x9b0 fs/inode.c:810 __dentry_kill+0x20d/0x630 fs/dcache.c:660 dput+0x19f/0x2b0 fs/dcache.c:902 __fput+0x60b/0x9f0 fs/file_table.c:473 task_work_run+0x251/0x310 kernel/task_work.c:227 get_signal+0x15db/0x1730 kernel/signal.c:2807 arch_do_signal_or_restart+0x98/0x840 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f472c78d169 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f472d58a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffff8b RBX: 00007f472c9a5fa0 RCX: 00007f472c78d169 RDX: 000000000000fdef RSI: 0000200000000140 RDI: 0000000000000006 RBP: 00007f472c80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fecc R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f472c9a5fa0 R15: 00007ffd1e335188 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:f2fs_evict_inode+0x1832/0x1850 fs/f2fs/inode.c:944 Code: ff 89 de e8 30 e3 93 fd 40 84 ed 75 2d e8 26 e0 93 fd 4c 8b 74 24 08 e9 a5 e9 ff ff e8 17 e0 93 fd 90 0f 0b e8 0f e0 93 fd 90 <0f> 0b e8 07 e0 93 fd 90 0f 0b 90 e9 fa fe ff ff e8 f9 df 93 fd e8 RSP: 0000:ffffc90004d67878 EFLAGS: 00010283 RAX: ffffffff842f7d21 RBX: 0000000000000002 RCX: 0000000000080000 RDX: ffffc900047f2000 RSI: 000000000006e1aa RDI: 000000000006e1ab RBP: 0000000000000000 R08: ffffffff842f76ea R09: 1ffff1100b6cdbc0 R10: dffffc0000000000 R11: ffffed100b6cdbc1 R12: ffff88805b66d960 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88805a668000 FS: 00007f472d58a6c0(0000) GS:ffff88812508f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007efd75f21378 CR3: 0000000033776000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400