IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 ntfs: (device loop2): is_boot_sector_ntfs(): Invalid end of sector marker. ================================================================== BUG: KASAN: use-after-free in ntfs_attr_find+0xa45/0xb70 fs/ntfs/attrib.c:599 Read of size 4 at addr ffff8881c885ad35 by task syz-executor2/3729 ntfs: (device loop1): is_boot_sector_ntfs(): Invalid end of sector marker. CPU: 0 PID: 3729 Comm: syz-executor2 Not tainted 5.8.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x136/0x187 lib/dump_stack.c:118 print_address_description.constprop.9+0x3f/0x60 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold.12+0x20/0x37 mm/kasan/report.c:530 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/generic_report.c:156 ntfs_attr_find+0xa45/0xb70 fs/ntfs/attrib.c:599 ntfs_external_attr_find fs/ntfs/attrib.c:1093 [inline] ntfs_attr_lookup+0x10c9/0x2390 fs/ntfs/attrib.c:1191 ntfs_read_inode_mount+0x6c2/0x2140 fs/ntfs/inode.c:1832 ntfs_fill_super+0x1296/0x2e60 fs/ntfs/super.c:2857 mount_bdev+0x27b/0x340 fs/super.c:1417 ntfs_mount+0x10/0x20 fs/ntfs/super.c:3051 legacy_get_tree+0x103/0x1f0 fs/fs_context.c:592 vfs_get_tree+0x8b/0x2d0 fs/super.c:1547 do_new_mount fs/namespace.c:2874 [inline] do_mount+0x1293/0x1c40 fs/namespace.c:3199 __do_sys_mount fs/namespace.c:3409 [inline] __se_sys_mount fs/namespace.c:3386 [inline] __x64_sys_mount+0x169/0x1c0 fs/namespace.c:3386 do_syscall_64+0x6e/0xf0 arch/x86/entry/common.c:359 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x457dea Code: Bad RIP value. RSP: 002b:00007faa1b304bb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 0000000000457dea RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007faa1b304c00 RBP: 0000000000000002 R08: 000000002007e200 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 000000000000066c R14: 00000000006fbac0 R15: 0000000000000000 Allocated by task 2091: save_stack+0x21/0x50 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.8+0xc1/0xd0 mm/kasan/common.c:494 kasan_slab_alloc+0x12/0x20 mm/kasan/common.c:502 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x121/0x740 mm/slab.c:3484 getname_flags+0xb8/0x510 fs/namei.c:138 user_path_at_empty+0x1e/0x40 fs/namei.c:2646 user_path_at include/linux/namei.h:59 [inline] vfs_statx+0xfc/0x2e0 fs/stat.c:202 vfs_lstat include/linux/fs.h:3303 [inline] __do_sys_newlstat+0x85/0xe0 fs/stat.c:374 __se_sys_newlstat fs/stat.c:368 [inline] __x64_sys_newlstat+0x4f/0x70 fs/stat.c:368 do_syscall_64+0x6e/0xf0 arch/x86/entry/common.c:359 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 2091: save_stack+0x21/0x50 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] kasan_set_free_info mm/kasan/common.c:316 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/common.c:455 kasan_slab_free+0xe/0x10 mm/kasan/common.c:464 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x86/0x2e0 mm/slab.c:3694 putname+0xa8/0xe0 fs/namei.c:259 filename_lookup.part.56+0x1e3/0x350 fs/namei.c:2376 filename_lookup fs/namei.c:2359 [inline] user_path_at_empty+0x39/0x40 fs/namei.c:2646 user_path_at include/linux/namei.h:59 [inline] vfs_statx+0xfc/0x2e0 fs/stat.c:202 vfs_lstat include/linux/fs.h:3303 [inline] __do_sys_newlstat+0x85/0xe0 fs/stat.c:374 __se_sys_newlstat fs/stat.c:368 [inline] __x64_sys_newlstat+0x4f/0x70 fs/stat.c:368 do_syscall_64+0x6e/0xf0 arch/x86/entry/common.c:359 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff8881c885a680 which belongs to the cache names_cache of size 4096 The buggy address is located 1717 bytes inside of 4096-byte region [ffff8881c885a680, ffff8881c885b680) The buggy address belongs to the page: page:ffffea0007221680 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 head:ffffea0007221680 order:1 compound_mapcount:0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffffea0007221408 ffffea000724dd08 ffff8881da1a1a80 raw: 0000000000000000 ffff8881c885a680 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881c885ac00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881c885ac80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881c885ad00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881c885ad80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881c885ae00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================