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 loop3): is_boot_sector_ntfs(): Invalid end of sector marker. ================================================================== BUG: KASAN: use-after-free in ntfs_attr_find+0x9df/0xb00 fs/ntfs/attrib.c:599 Read of size 4 at addr ffff8881ca50ad35 by task syz-executor3/4450 CPU: 0 PID: 4450 Comm: syz-executor3 Not tainted 5.5.0-rc5-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:374 __kasan_report.cold.11+0x1b/0x39 mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:639 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/generic_report.c:145 ntfs_attr_find+0x9df/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+0x6bf/0x20c0 fs/ntfs/inode.c:1832 ntfs_fill_super+0x121e/0x2d50 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:647 vfs_get_tree+0x8b/0x2d0 fs/super.c:1547 do_new_mount fs/namespace.c:2822 [inline] do_mount+0x1285/0x1b70 fs/namespace.c:3142 __do_sys_mount fs/namespace.c:3351 [inline] __se_sys_mount fs/namespace.c:3328 [inline] __x64_sys_mount+0x169/0x1c0 fs/namespace.c:3328 do_syscall_64+0xd0/0x600 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe 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:00007f9cbdef6bb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 0000000000457dea RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f9cbdef6c00 RBP: 0000000000000002 R08: 000000002007e200 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 000000000000066c R14: 00000000006fbac0 R15: 0000000000000000 Allocated by task 2386: save_stack+0x21/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc.constprop.7+0xc1/0xd0 mm/kasan/common.c:513 kasan_slab_alloc+0x12/0x20 mm/kasan/common.c:521 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slab.c:3263 [inline] kmem_cache_alloc_node+0x138/0x750 mm/slab.c:3575 alloc_task_struct_node kernel/fork.c:169 [inline] dup_task_struct kernel/fork.c:868 [inline] copy_process+0x1564/0x61e0 kernel/fork.c:1911 _do_fork+0xec/0xbf0 kernel/fork.c:2421 __do_sys_clone kernel/fork.c:2576 [inline] __se_sys_clone kernel/fork.c:2557 [inline] __x64_sys_clone+0x18e/0x240 kernel/fork.c:2557 do_syscall_64+0xd0/0x600 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 2618: save_stack+0x21/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] kasan_set_free_info mm/kasan/common.c:335 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/common.c:474 kasan_slab_free+0xe/0x10 mm/kasan/common.c:483 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x86/0x2e0 mm/slab.c:3694 free_task_struct kernel/fork.c:174 [inline] free_task+0xa5/0xd0 kernel/fork.c:476 __put_task_struct+0x1c3/0x470 kernel/fork.c:751 put_task_struct include/linux/sched/task.h:122 [inline] delayed_put_task_struct+0x170/0x250 kernel/exit.c:182 __rcu_reclaim kernel/rcu/rcu.h:222 [inline] rcu_do_batch kernel/rcu/tree.c:2183 [inline] rcu_core+0x529/0x1390 kernel/rcu/tree.c:2408 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2417 __do_softirq+0x248/0x94c kernel/softirq.c:292 The buggy address belongs to the object at ffff8881ca50a180 which belongs to the cache task_struct of size 6144 The buggy address is located 2997 bytes inside of 6144-byte region [ffff8881ca50a180, ffff8881ca50b980) The buggy address belongs to the page: page:ffffea0007294280 refcount:1 mapcount:0 mapping:ffff8881da1891c0 index:0x0 compound_mapcount: 0 raw: 02fffc0000010200 ffffea00072bfa08 ffffea00072b4408 ffff8881da1891c0 raw: 0000000000000000 ffff8881ca50a180 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881ca50ac00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881ca50ac80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881ca50ad00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881ca50ad80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881ca50ae00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================