================================================================== BUG: KASAN: slab-out-of-bounds in memcmp lib/string.c:765 [inline] BUG: KASAN: slab-out-of-bounds in bcmp+0xbe/0x1e0 lib/string.c:797 Read of size 8 at addr ffff88803cbfa518 by task syz-executor.2/16436 CPU: 0 PID: 16436 Comm: syz-executor.2 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+0x1b1/0x28e lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:284 print_report+0x107/0x1f0 mm/kasan/report.c:395 kasan_report+0xcd/0x100 mm/kasan/report.c:495 memcmp lib/string.c:765 [inline] bcmp+0xbe/0x1e0 lib/string.c:797 _Z6memcmpPKvU17pass_object_size0S0_U17pass_object_size0m include/linux/fortify-string.h:531 [inline] ntfs_read_mft fs/ntfs3/inode.c:253 [inline] ntfs_iget5+0x1101/0x36f0 fs/ntfs3/inode.c:501 ntfs_extend_init+0x13d/0x5a0 fs/ntfs3/fsntfs.c:199 ntfs_fill_super+0x3f20/0x42a0 fs/ntfs3/super.c:1243 get_tree_bdev+0x400/0x620 fs/super.c:1323 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x289/0xad0 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7febfcc8cada 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:00007febfd9cdf88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007febfcc8cada RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007febfd9cdfe0 RBP: 00007febfd9ce020 R08: 00007febfd9ce020 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 00007febfd9cdfe0 R15: 0000000020000140 Allocated by task 16436: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x3d/0x60 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:371 [inline] __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:380 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:955 [inline] __kmalloc+0xaf/0x1a0 mm/slab_common.c:968 kmalloc include/linux/slab.h:581 [inline] mi_init+0x72/0xe0 fs/ntfs3/record.c:105 ntfs_read_mft fs/ntfs3/inode.c:53 [inline] ntfs_iget5+0x309/0x36f0 fs/ntfs3/inode.c:501 ntfs_extend_init+0x13d/0x5a0 fs/ntfs3/fsntfs.c:199 ntfs_fill_super+0x3f20/0x42a0 fs/ntfs3/super.c:1243 get_tree_bdev+0x400/0x620 fs/super.c:1323 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x289/0xad0 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88803cbfa000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 280 bytes to the right of 1024-byte region [ffff88803cbfa000, ffff88803cbfa400) The buggy address belongs to the physical page: page:ffffea0000f2fe00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3cbf8 head:ffffea0000f2fe00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001ec4400 dead000000000002 ffff888012041dc0 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3642, tgid 3642 (syz-executor.4), ts 171364487438, free_ts 0 prep_new_page mm/page_alloc.c:2538 [inline] get_page_from_freelist+0x742/0x7c0 mm/page_alloc.c:4287 __alloc_pages+0x259/0x560 mm/page_alloc.c:5554 alloc_slab_page+0x70/0xf0 mm/slub.c:1794 allocate_slab+0x5e/0x4b0 mm/slub.c:1939 new_slab mm/slub.c:1992 [inline] ___slab_alloc+0x782/0xe20 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] __kmem_cache_alloc_node+0x252/0x310 mm/slub.c:3437 __do_kmalloc_node mm/slab_common.c:954 [inline] __kmalloc_node_track_caller+0x9c/0x1a0 mm/slab_common.c:975 kmalloc_reserve net/core/skbuff.c:437 [inline] __alloc_skb+0x112/0x2b0 net/core/skbuff.c:509 alloc_skb include/linux/skbuff.h:1267 [inline] nlmsg_new include/net/netlink.h:964 [inline] inet6_rt_notify+0x2c9/0x5a0 net/ipv6/route.c:6172 fib6_add_rt2node net/ipv6/ip6_fib.c:1252 [inline] fib6_add+0x1e90/0x3c70 net/ipv6/ip6_fib.c:1478 __ip6_ins_rt net/ipv6/route.c:1302 [inline] ip6_route_add+0x84/0x120 net/ipv6/route.c:3847 addrconf_prefix_route+0x3fd/0x5c0 net/ipv6/addrconf.c:2425 inet6_addr_add+0x541/0xa00 net/ipv6/addrconf.c:2972 inet6_rtm_newaddr+0x88e/0x2080 net/ipv6/addrconf.c:4927 rtnetlink_rcv_msg+0x772/0xe60 net/core/rtnetlink.c:6091 netlink_rcv_skb+0x1f0/0x460 net/netlink/af_netlink.c:2540 page_owner free stack trace missing Memory state around the buggy address: ffff88803cbfa400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88803cbfa480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88803cbfa500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88803cbfa580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88803cbfa600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================