syz.2.214: attempt to access beyond end of device loop2: rw=0, sector=6491536, nr_sectors = 2 limit=128 Buffer I/O error on dev loop2, logical block 3245768, async page read ------------[ cut here ]------------ WARNING: CPU: 0 PID: 7312 at fs/inode.c:393 inc_nlink+0x120/0x170 fs/inode.c:393 Modules linked in: CPU: 0 UID: 0 PID: 7312 Comm: syz.2.214 Not tainted 6.12.0-rc6-syzkaller-g8936d33c1f69 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : inc_nlink+0x120/0x170 fs/inode.c:393 lr : inc_nlink+0x120/0x170 fs/inode.c:393 sp : ffff8000a22c7b80 x29: ffff8000a22c7b80 x28: 1fffe0001b99100c x27: dfff800000000000 x26: 0000000000000000 x25: 00000000000001c0 x24: 000000000000007e x23: 1fffe0001b991010 x22: dfff800000000000 x21: 0000000000000000 x20: ffff0000dcc88038 x19: ffff0000dcc88080 x18: ffff8000a22c73e0 x17: 0000000000033f9e x16: ffff80008b4b2ccc x15: 0000000000000004 x14: 1ffff00014458f49 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000040000 x10: 0000000000002e9c x9 : ffff8000a53cf000 x8 : 0000000000002e9d x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : ffff8000a22c7a20 x3 : 00000000000001c0 x2 : ffff0000eec6ceb0 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: inc_nlink+0x120/0x170 fs/inode.c:393 (P) inc_nlink+0x120/0x170 fs/inode.c:393 (L) inode_inc_link_count include/linux/fs.h:2504 [inline] sysv_mkdir+0x2c/0x138 fs/sysv/namei.c:119 vfs_mkdir+0x27c/0x410 fs/namei.c:4257 do_mkdirat+0x248/0x574 fs/namei.c:4280 __do_sys_mkdirat fs/namei.c:4295 [inline] __se_sys_mkdirat fs/namei.c:4293 [inline] __arm64_sys_mkdirat+0x8c/0xa4 fs/namei.c:4293 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 1572 hardirqs last enabled at (1571): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:234 hardirqs last disabled at (1572): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (1452): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (1450): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---