syz.2.91: attempt to access beyond end of device loop2: rw=2049, sector=268435468, nr_sectors = 2 limit=64 overlayfs: failed to resolve './file1/file0': -2 ------------[ cut here ]------------ WARNING: fs/inode.c:474 at inc_nlink+0x122/0x150 fs/inode.c:474, CPU#1: syz.2.91/6561 Modules linked in: CPU: 1 UID: 0 PID: 6561 Comm: syz.2.91 Not tainted 6.16.0-rc4-next-20250704-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:inc_nlink+0x122/0x150 fs/inode.c:474 Code: e8 ff e9 3a ff ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 4c ff ff ff 48 89 df e8 99 48 e8 ff e9 3f ff ff ff e8 cf ab 83 ff 90 <0f> 0b 90 eb 80 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 50 ff ff ff RSP: 0018:ffffc9001abf74e0 EFLAGS: 00010283 RAX: ffffffff823c04b1 RBX: ffff888055c885d0 RCX: 0000000000080000 RDX: ffffc9000c4ba000 RSI: 0000000000001322 RDI: 0000000000001323 RBP: 0000000000000000 R08: ffffffff8fa25d37 R09: 1ffffffff1f44ba6 R10: dffffc0000000000 R11: fffffbfff1f44ba7 R12: dffffc0000000000 R13: 1ffff1100ab910ba R14: ffff888055c88588 R15: ffff888055c88658 FS: 00007f29d5fa36c0(0000) GS:ffff888125ce7000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3c7bb7e250 CR3: 000000003265a000 CR4: 00000000003526f0 Call Trace: inode_inc_link_count include/linux/fs.h:2630 [inline] minix_mkdir+0x44/0x120 fs/minix/namei.c:117 vfs_mkdir+0x303/0x510 fs/namei.c:4366 ovl_do_mkdir fs/overlayfs/overlayfs.h:251 [inline] ovl_workdir_create+0x448/0x7f0 fs/overlayfs/super.c:330 ovl_make_workdir fs/overlayfs/super.c:669 [inline] ovl_get_workdir+0x32c/0x1740 fs/overlayfs/super.c:827 ovl_fill_super+0x1365/0x35b0 fs/overlayfs/super.c:1406 vfs_get_super fs/super.c:1325 [inline] get_tree_nodev+0xbb/0x150 fs/super.c:1344 vfs_get_tree+0x8f/0x2b0 fs/super.c:1804 do_new_mount+0x2a2/0x9e0 fs/namespace.c:3805 do_mount fs/namespace.c:4133 [inline] __do_sys_mount fs/namespace.c:4344 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4321 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f29d518e929 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:00007f29d5fa3038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f29d53b5fa0 RCX: 00007f29d518e929 RDX: 0000200000000080 RSI: 00002000000000c0 RDI: 0000000000000000 RBP: 00007f29d5210b39 R08: 0000200000000180 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f29d53b5fa0 R15: 00007fff5d400058