================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_attr_find+0xb88/0xce0 fs/ntfs/attrib.c:597 Read of size 2 at addr ffff8880787cbfc2 by task syz-executor.1/9937 CPU: 0 PID: 9937 Comm: syz-executor.1 Not tainted 6.0.0-rc6-syzkaller #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 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:317 [inline] print_report.cold+0x2ba/0x6e9 mm/kasan/report.c:433 kasan_report+0xb1/0x1e0 mm/kasan/report.c:495 ntfs_attr_find+0xb88/0xce0 fs/ntfs/attrib.c:597 ntfs_attr_lookup+0x1056/0x2070 fs/ntfs/attrib.c:1193 ntfs_read_inode_mount+0x89a/0x2580 fs/ntfs/inode.c:1845 ntfs_fill_super+0x17c7/0x9300 fs/ntfs/super.c:2854 mount_bdev+0x34d/0x410 fs/super.c:1400 legacy_get_tree+0x105/0x220 fs/fs_context.c:610 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:0x7fbd2ba8a93a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 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:00007fbd2cc09f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007fbd2ba8a93a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fbd2cc09fe0 RBP: 00007fbd2cc0a020 R08: 00007fbd2cc0a020 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 00007fbd2cc09fe0 R15: 0000000020079ca0 Allocated by task 7512: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:437 [inline] __kasan_slab_alloc+0x85/0xb0 mm/kasan/common.c:470 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:727 [inline] slab_alloc mm/slab.c:3294 [inline] __kmem_cache_alloc_lru mm/slab.c:3471 [inline] kmem_cache_alloc+0x214/0x520 mm/slab.c:3491 kmem_cache_zalloc include/linux/slab.h:723 [inline] net_alloc net/core/net_namespace.c:404 [inline] copy_net_ns+0x125/0x760 net/core/net_namespace.c:459 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110 copy_namespaces+0x391/0x480 kernel/nsproxy.c:178 copy_process+0x305c/0x7090 kernel/fork.c:2260 kernel_clone+0xe7/0xab0 kernel/fork.c:2674 __do_sys_clone+0xba/0x100 kernel/fork.c:2808 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 The buggy address belongs to the object at ffff8880787ca280 which belongs to the cache net_namespace of size 6784 The buggy address is located 706 bytes to the right of 6784-byte region [ffff8880787ca280, ffff8880787cbd00) The buggy address belongs to the physical page: page:ffffea0001e1f280 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880787ca280 pfn:0x787ca head:ffffea0001e1f280 order:1 compound_mapcount:0 compound_pincount:0 memcg:ffff888078551b01 flags: 0x4fff00000010200(slab|head|node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000010200 ffffea0001ae0408 ffff888040075d60 ffff8880121e1400 raw: ffff8880787ca280 ffff8880787ca280 0000000100000000 ffff888078551b01 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0x140cc0(GFP_USER|__GFP_COMP), pid 4186, tgid 4185 (syz-executor.1), ts 270083569120, free_ts 270025411741 prep_new_page mm/page_alloc.c:2532 [inline] get_page_from_freelist+0x109b/0x2ce0 mm/page_alloc.c:4283 __alloc_pages+0x1c7/0x510 mm/page_alloc.c:5515 __alloc_pages_node include/linux/gfp.h:243 [inline] kmem_getpages mm/slab.c:1363 [inline] cache_grow_begin+0x75/0x360 mm/slab.c:2569 fallback_alloc+0x1e2/0x2d0 mm/slab.c:3112 __do_cache_alloc mm/slab.c:3253 [inline] slab_alloc mm/slab.c:3287 [inline] __kmem_cache_alloc_lru mm/slab.c:3471 [inline] kmem_cache_alloc+0x30d/0x520 mm/slab.c:3491 kmem_cache_zalloc include/linux/slab.h:723 [inline] net_alloc net/core/net_namespace.c:404 [inline] copy_net_ns+0x125/0x760 net/core/net_namespace.c:459 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110 copy_namespaces+0x391/0x480 kernel/nsproxy.c:178 copy_process+0x305c/0x7090 kernel/fork.c:2260 kernel_clone+0xe7/0xab0 kernel/fork.c:2674 __do_sys_clone+0xba/0x100 kernel/fork.c:2808 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 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1449 [inline] free_pcp_prepare+0x5e4/0xd20 mm/page_alloc.c:1499 free_unref_page_prepare mm/page_alloc.c:3380 [inline] free_unref_page+0x19/0x4d0 mm/page_alloc.c:3476 slab_destroy mm/slab.c:1615 [inline] slabs_destroy+0x89/0xc0 mm/slab.c:1635 __cache_free_alien mm/slab.c:774 [inline] cache_free_alien mm/slab.c:790 [inline] ___cache_free+0x200/0x3d0 mm/slab.c:3445 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x4f/0x1b0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x97/0xb0 mm/kasan/common.c:447 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:727 [inline] slab_alloc_node mm/slab.c:3232 [inline] kmem_cache_alloc_node+0x2f1/0x560 mm/slab.c:3583 __alloc_skb+0x210/0x2f0 net/core/skbuff.c:422 alloc_skb include/linux/skbuff.h:1257 [inline] alloc_uevent_skb+0x7b/0x210 lib/kobject_uevent.c:290 uevent_net_broadcast_tagged lib/kobject_uevent.c:351 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:412 [inline] kobject_uevent_env+0x110a/0x1640 lib/kobject_uevent.c:593 device_add+0xb72/0x1e90 drivers/base/core.c:3498 netdev_register_kobject+0x181/0x400 net/core/net-sysfs.c:2015 register_netdevice+0xe01/0x1680 net/core/dev.c:10070 register_netdev+0x2d/0x50 net/core/dev.c:10196 vti6_init_net+0x449/0x860 net/ipv6/ip6_vti.c:1164 Memory state around the buggy address: ffff8880787cbe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880787cbf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880787cbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880787cc000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880787cc080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================