loop3: detected capacity change from 0 to 8226 ntfs3: loop3: Mark volume as dirty due to NTFS errors ================================================================== 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 ffff88802e9b7d68 by task syz-executor.3/29895 CPU: 1 PID: 29895 Comm: syz-executor.3 Not tainted 6.1.0-rc4-syzkaller-00045-g1767a722a708 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/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:549 [inline] ntfs_read_mft fs/ntfs3/inode.c:253 [inline] ntfs_iget5+0x1101/0x36f0 fs/ntfs3/inode.c:501 ntfs_security_init+0x112/0x8a0 fs/ntfs3/fsntfs.c:1833 ntfs_fill_super+0x3e25/0x42a0 fs/ntfs3/super.c:1238 get_tree_bdev+0x400/0x620 fs/super.c:1324 vfs_get_tree+0x88/0x270 fs/super.c:1531 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:0x7fb43de8cb6a 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:00007fb43eb6af88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000bc0 RCX: 00007fb43de8cb6a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fb43eb6afe0 RBP: 00007fb43eb6b020 R08: 00007fb43eb6b020 R09: 0000000020000000 R10: 0000000000000002 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 00007fb43eb6afe0 R15: 0000000020003580 Allocated by task 28749: 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_node+0xaf/0x190 mm/slab_common.c:962 kmalloc_node include/linux/slab.h:579 [inline] kvmalloc_node+0x6e/0x180 mm/util.c:581 kvmalloc include/linux/slab.h:706 [inline] seq_buf_alloc fs/seq_file.c:38 [inline] seq_read_iter+0x1f6/0xd30 fs/seq_file.c:210 call_read_iter include/linux/fs.h:2185 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x7ac/0xbf0 fs/read_write.c:470 ksys_read+0x177/0x2a0 fs/read_write.c:613 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 Freed by task 28749: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x3d/0x60 mm/kasan/common.c:52 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:511 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1724 [inline] slab_free_freelist_hook+0x12e/0x1a0 mm/slub.c:1750 slab_free mm/slub.c:3661 [inline] __kmem_cache_free+0x71/0x110 mm/slub.c:3674 seq_release+0x53/0x70 fs/seq_file.c:355 kernfs_fop_release+0x2ee/0x430 fs/kernfs/file.c:802 __fput+0x3ba/0x880 fs/file_table.c:320 task_work_run+0x243/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x124/0x150 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:296 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88802e9b6000 which belongs to the cache kmalloc-cg-4k of size 4096 The buggy address is located 3432 bytes to the right of 4096-byte region [ffff88802e9b6000, ffff88802e9b7000) The buggy address belongs to the physical page: page:ffffea0000ba6c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2e9b0 head:ffffea0000ba6c00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea000084a200 dead000000000003 ffff88801204c280 raw: 0000000000000000 0000000000040004 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3658, tgid 3658 (syz-executor.3), ts 106540020103, free_ts 0 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x742/0x7c0 mm/page_alloc.c:4288 __alloc_pages+0x259/0x560 mm/page_alloc.c:5555 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/0x190 mm/slab_common.c:975 kmemdup+0x26/0x60 mm/util.c:129 _Z7kmemdupPKvU17pass_object_size0mj include/linux/fortify-string.h:585 [inline] __addrconf_sysctl_register+0x97/0x3b0 net/ipv6/addrconf.c:7065 addrconf_sysctl_register+0x128/0x180 net/ipv6/addrconf.c:7130 ipv6_add_dev+0xb9d/0x1150 net/ipv6/addrconf.c:450 addrconf_notify+0x75b/0xfe0 net/ipv6/addrconf.c:3528 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xe7/0x170 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:1945 [inline] call_netdevice_notifiers_extack net/core/dev.c:1983 [inline] call_netdevice_notifiers+0x14e/0x1d0 net/core/dev.c:1997 register_netdevice+0x1316/0x1790 net/core/dev.c:10090 wg_newlink+0x47f/0x740 drivers/net/wireguard/device.c:371 page_owner free stack trace missing Memory state around the buggy address: ffff88802e9b7c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802e9b7c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88802e9b7d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802e9b7d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802e9b7e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================