loop0: detected capacity change from 0 to 4096 ntfs3: loop0: Different NTFS' sector size (1024) and media sector size (512) ntfs3: loop0: Mark volume as dirty due to NTFS errors ================================================================== BUG: KASAN: use-after-free in mi_enum_attr+0x601/0x630 fs/ntfs3/record.c:235 Read of size 4 at addr ffff888175ea918f by task syz-executor881/3609 CPU: 0 PID: 3609 Comm: syz-executor881 Not tainted 6.1.0-rc2-syzkaller-00105-gb229b6ca5abb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15e/0x45d mm/kasan/report.c:395 kasan_report+0xbb/0x1f0 mm/kasan/report.c:495 mi_enum_attr+0x601/0x630 fs/ntfs3/record.c:235 ni_enum_attr_ex+0x319/0x400 fs/ntfs3/frecord.c:259 ntfs_read_mft fs/ntfs3/inode.c:114 [inline] ntfs_iget5+0xabc/0x3280 fs/ntfs3/inode.c:501 ntfs_fill_super+0x2eb1/0x37f0 fs/ntfs3/super.c:1195 get_tree_bdev+0x440/0x760 fs/super.c:1323 vfs_get_tree+0x89/0x2f0 fs/super.c:1530 do_new_mount fs/namespace.c:3040 [inline] path_mount+0x1326/0x1e20 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f9d386dc60a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 08 01 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc7e0a6598 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f9d386dc60a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffc7e0a65b0 RBP: 00007ffc7e0a65b0 R08: 00007ffc7e0a65f0 R09: 00007ffc7e0a6620 R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004 R13: 00007ffc7e0a65f0 R14: 0000000000000109 R15: 0000000020001ad8 The buggy address belongs to the physical page: page:ffffea0005d7aa40 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x175ea9 flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000000000 ffffea0005d7aa48 ffffea0005d7aa48 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: ffff888175ea9080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888175ea9100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888175ea9180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888175ea9200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888175ea9280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================