ntfs3: loop0: Failed to load $Extend. ================================================================== BUG: KASAN: use-after-free in hdr_find_e+0x255/0x580 fs/ntfs3/index.c:689 Read of size 2 at addr ffff88809904451f by task syz-executor402/3608 CPU: 0 PID: 3608 Comm: syz-executor402 Not tainted 6.0.0-syzkaller-03015-g2bca25eaeba6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 print_address_description+0x65/0x4b0 mm/kasan/report.c:317 print_report+0x108/0x1f0 mm/kasan/report.c:433 kasan_report+0xc3/0xf0 mm/kasan/report.c:495 hdr_find_e+0x255/0x580 fs/ntfs3/index.c:689 indx_find+0x30d/0xb20 fs/ntfs3/index.c:1068 dir_search_u+0x161/0x320 fs/ntfs3/dir.c:254 ntfs_lookup+0x112/0x1b0 fs/ntfs3/namei.c:83 __lookup_slow+0x266/0x3a0 fs/namei.c:1685 lookup_slow+0x53/0x70 fs/namei.c:1702 walk_component+0x2e1/0x410 fs/namei.c:1993 lookup_last fs/namei.c:2450 [inline] path_lookupat+0x17d/0x450 fs/namei.c:2474 filename_lookup+0x274/0x650 fs/namei.c:2503 vfs_statx+0x117/0x4a0 fs/stat.c:229 vfs_fstatat fs/stat.c:267 [inline] __do_sys_newfstatat fs/stat.c:437 [inline] __se_sys_newfstatat+0xed/0x7d0 fs/stat.c:431 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7f80a12599 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffee73b7e18 EFLAGS: 00000246 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f7f80a12599 RDX: 0000000000000000 RSI: 0000000020000380 RDI: ffffffffffffff9c RBP: 00007f7f809d1ad0 R08: 00007ffee73b7d00 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7f809d1b60 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the physical page: page:ffffea0002641100 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x99044 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0002641108 ffffea0002641108 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff888099044400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888099044480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888099044500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888099044580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888099044600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================