VFS: Found a Xenix FS (block size = 1024) on device loop2 attempt to access beyond end of device loop2: rw=0, want=6491538, limit=128 Buffer I/O error on dev loop2, logical block 3245768, async page read ================================================================== BUG: KASAN: use-after-free in sysv_new_inode+0x6cc/0x13c0 fs/sysv/ialloc.c:153 Read of size 2 at addr ffff8800920a41ce by task syz.2.15/4750 CPU: 0 PID: 4750 Comm: syz.2.15 Not tainted 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x10c/0x17a lib/dump_stack.c:113 print_address_description.cold.6+0x9/0x244 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold.7+0x242/0x305 mm/kasan/report.c:396 __asan_report_load2_noabort+0x14/0x20 mm/kasan/report.c:431 sysv_new_inode+0x6cc/0x13c0 fs/sysv/ialloc.c:153 sysv_symlink+0x82/0x140 fs/sysv/namei.c:93 vfs_symlink+0x2ff/0x500 fs/namei.c:4127 do_symlinkat+0x192/0x1e0 fs/namei.c:4154 __do_sys_symlink fs/namei.c:4173 [inline] __se_sys_symlink fs/namei.c:4171 [inline] __x64_sys_symlink+0x54/0x80 fs/namei.c:4171 do_syscall_64+0xd0/0x340 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f5e4ef28719 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:00007f5e4e9a9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f5e4f0dff80 RCX: 00007f5e4ef28719 RDX: 0000000000000000 RSI: 00000000200059c0 RDI: 00000000200049c0 RBP: 00007f5e4ef9b32e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5e4f0dff80 R15: 00007fff37462a28 The buggy address belongs to the page: page:ffffea0002482900 count:0 mapcount:0 mapping:0000000000000000 index:0x1 flags: 0xfff00000000000() raw: 00fff00000000000 ffffea0002482948 ffffea00024828c8 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not active (free page?) Memory state around the buggy address: ffff8800920a4080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8800920a4100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8800920a4180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8800920a4200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8800920a4280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================