================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_init_from_boot fs/ntfs3/super.c:844 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_fill_super+0x2c6f/0x42a0 fs/ntfs3/super.c:935 Write of size 4 at addr ffff888021e04578 by task syz-executor.4/22230 CPU: 1 PID: 22230 Comm: syz-executor.4 Not tainted 6.1.0-rc4-syzkaller-00362-gfef7fd48922d #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 ntfs_init_from_boot fs/ntfs3/super.c:844 [inline] ntfs_fill_super+0x2c6f/0x42a0 fs/ntfs3/super.c:935 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:0x7faf9348cb6a 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:00007faf942c2f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007faf9348cb6a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007faf942c2fe0 RBP: 00007faf942c3020 R08: 00007faf942c3020 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 00007faf942c2fe0 R15: 0000000020000140 Allocated by task 22230: 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:558 [inline] kzalloc include/linux/slab.h:689 [inline] ntfs_init_from_boot fs/ntfs3/super.c:837 [inline] ntfs_fill_super+0x156b/0x42a0 fs/ntfs3/super.c:935 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 The buggy address belongs to the object at ffff888021e04578 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of 8-byte region [ffff888021e04578, ffff888021e04580) The buggy address belongs to the physical page: page:ffffea0000878100 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x21e04 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 dead000000000100 dead000000000122 ffff888012041280 raw: 0000000000000000 0000000080660066 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 3638, tgid 3638 (syz-executor.5), ts 132307655067, free_ts 132307571316 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+0x9e/0x190 mm/slab_common.c:962 kmalloc_node include/linux/slab.h:579 [inline] __vmalloc_area_node mm/vmalloc.c:3029 [inline] __vmalloc_node_range+0x5ac/0x1290 mm/vmalloc.c:3213 __vmalloc_node mm/vmalloc.c:3278 [inline] vzalloc+0x75/0x80 mm/vmalloc.c:3351 alloc_counters+0xca/0x7d0 net/ipv4/netfilter/ip_tables.c:801 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:839 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1041 [inline] do_ip6t_get_ctl+0xe86/0x17b0 net/ipv6/netfilter/ip6_tables.c:1672 nf_getsockopt+0x2ab/0x2d0 net/netfilter/nf_sockopt.c:116 ipv6_getsockopt+0x285/0x3d0 net/ipv6/ipv6_sockglue.c:1513 tcp_getsockopt+0x183/0x230 net/ipv4/tcp.c:4402 __sys_getsockopt+0x2db/0x5d0 net/socket.c:2296 __do_sys_getsockopt net/socket.c:2311 [inline] __se_sys_getsockopt net/socket.c:2308 [inline] __x64_sys_getsockopt+0xb1/0xc0 net/socket.c:2308 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare+0x80c/0x8f0 mm/page_alloc.c:1509 free_unref_page_prepare mm/page_alloc.c:3387 [inline] free_unref_page+0x7d/0x5f0 mm/page_alloc.c:3483 __vunmap+0x877/0x9e0 mm/vmalloc.c:2713 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:884 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1041 [inline] do_ip6t_get_ctl+0x12a3/0x17b0 net/ipv6/netfilter/ip6_tables.c:1672 nf_getsockopt+0x2ab/0x2d0 net/netfilter/nf_sockopt.c:116 ipv6_getsockopt+0x285/0x3d0 net/ipv6/ipv6_sockglue.c:1513 tcp_getsockopt+0x183/0x230 net/ipv4/tcp.c:4402 __sys_getsockopt+0x2db/0x5d0 net/socket.c:2296 __do_sys_getsockopt net/socket.c:2311 [inline] __se_sys_getsockopt net/socket.c:2308 [inline] __x64_sys_getsockopt+0xb1/0xc0 net/socket.c:2308 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 Memory state around the buggy address: ffff888021e04400: fc fc 06 fc fc fc fc fa fc fc fc fc fb fc fc fc ffff888021e04480: fc fa fc fc fc fc fa fc fc fc fc fa fc fc fc fc >ffff888021e04500: 06 fc fc fc fc 07 fc fc fc fc 00 fc fc fc fc 02 ^ ffff888021e04580: fc fc fc fc fa fc fc fc fc 06 fc fc fc fc 05 fc ffff888021e04600: fc fc fc 05 fc fc fc fc 05 fc fc fc fc fa fc fc ==================================================================