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 loop0): is_boot_sector_ntfs(): Invalid end of sector marker. ================================================================== BUG: KASAN: use-after-free in ntfs_attr_find+0x9db/0xb00 fs/ntfs/attrib.c:599 Read of size 4 at addr ffff8881c866ed35 by task syz-executor/3932 ntfs: (device loop2): is_boot_sector_ntfs(): Invalid end of sector marker. CPU: 0 PID: 3932 Comm: syz-executor Not tainted 5.7.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+0x12f/0x187 lib/dump_stack.c:118 print_address_description.constprop.8+0x3b/0x60 mm/kasan/report.c:382 __kasan_report.cold.11+0x37/0x4e mm/kasan/report.c:511 kasan_report+0x38/0x50 mm/kasan/common.c:625 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/generic_report.c:156 ntfs_attr_find+0x9db/0xb00 fs/ntfs/attrib.c:599 ntfs_external_attr_find fs/ntfs/attrib.c:1093 [inline] ntfs_attr_lookup+0x10c9/0x23c0 fs/ntfs/attrib.c:1191 ntfs_read_inode_mount+0x6c2/0x21b0 fs/ntfs/inode.c:1832 ntfs_fill_super+0x1217/0x2d40 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:622 vfs_get_tree+0x8b/0x2d0 fs/super.c:1547 do_new_mount fs/namespace.c:2816 [inline] do_mount+0x1287/0x1c30 fs/namespace.c:3141 __do_sys_mount fs/namespace.c:3350 [inline] __se_sys_mount fs/namespace.c:3327 [inline] __x64_sys_mount+0x169/0x1c0 fs/namespace.c:3327 do_syscall_64+0xd0/0x630 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x457dea Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 dd 8f fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 ba 8f fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007f9122ca3bb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 0000000000457dea RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f9122ca3c00 RBP: 0000000000000002 R08: 000000002007e200 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 000000000000066c R14: 00000000006fbac0 R15: 0000000000000000 Allocated by task 3944: save_stack+0x21/0x50 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] __kasan_kmalloc.constprop.7+0xc1/0xd0 mm/kasan/common.c:495 kasan_slab_alloc+0x12/0x20 mm/kasan/common.c:503 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 getname+0xd/0x10 fs/namei.c:209 do_sys_openat2+0x23d/0x590 fs/open.c:1142 do_sys_open+0x90/0xe0 fs/open.c:1164 ksys_open include/linux/syscalls.h:1386 [inline] __do_sys_open fs/open.c:1170 [inline] __se_sys_open fs/open.c:1168 [inline] __x64_sys_open+0x79/0xb0 fs/open.c:1168 do_syscall_64+0xd0/0x630 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 3944: save_stack+0x21/0x50 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] kasan_set_free_info mm/kasan/common.c:317 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/common.c:456 kasan_slab_free+0xe/0x10 mm/kasan/common.c:465 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x86/0x2e0 mm/slab.c:3694 putname+0xa8/0xe0 fs/namei.c:259 do_sys_openat2+0x27d/0x590 fs/open.c:1157 do_sys_open+0x90/0xe0 fs/open.c:1164 ksys_open include/linux/syscalls.h:1386 [inline] __do_sys_open fs/open.c:1170 [inline] __se_sys_open fs/open.c:1168 [inline] __x64_sys_open+0x79/0xb0 fs/open.c:1168 do_syscall_64+0xd0/0x630 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 The buggy address belongs to the object at ffff8881c866e7c0 which belongs to the cache names_cache of size 4096 The buggy address is located 1397 bytes inside of 4096-byte region [ffff8881c866e7c0, ffff8881c866f7c0) The buggy address belongs to the page: page:ffffea0007219b80 refcount:1 mapcount:0 mapping:00000000cd40bc87 index:0x0 head:ffffea0007219b80 order:1 compound_mapcount:0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffffea0007219b08 ffffea0007217e08 ffff8881da17aa80 raw: 0000000000000000 ffff8881c866e7c0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881c866ec00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881c866ec80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881c866ed00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881c866ed80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881c866ee00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================