loop0: detected capacity change from 0 to 1024 ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x595/0x1210 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88802d05340c by task syz.0.7/5894 CPU: 0 PID: 5894 Comm: syz.0.7 Not tainted 6.6.102-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xac/0x220 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 hfsplus_uni2asc+0x595/0x1210 fs/hfsplus/unicode.c:179 hfsplus_readdir+0x702/0xd40 fs/hfsplus/dir.c:207 iterate_dir+0x1c2/0x580 fs/readdir.c:106 __do_sys_getdents64 fs/readdir.c:405 [inline] __se_sys_getdents64+0xe9/0x260 fs/readdir.c:390 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fe482d8ebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe483bb8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007fe482fb5fa0 RCX: 00007fe482d8ebe9 RDX: 00000000000000cb RSI: 0000200000000080 RDI: 0000000000000004 RBP: 00007fe482e11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe482fb6038 R14: 00007fe482fb5fa0 R15: 00007ffd9ac48db8 Allocated by task 5894: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc+0xb4/0x240 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] hfsplus_find_init+0x89/0x1d0 fs/hfsplus/bfind.c:21 hfsplus_readdir+0x1d8/0xd40 fs/hfsplus/dir.c:144 iterate_dir+0x1c2/0x580 fs/readdir.c:106 __do_sys_getdents64 fs/readdir.c:405 [inline] __se_sys_getdents64+0xe9/0x260 fs/readdir.c:390 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88802d053000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 0 bytes to the right of allocated 1036-byte region [ffff88802d053000, ffff88802d05340c) The buggy address belongs to the physical page: page:ffffea0000b41400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2d050 head:ffffea0000b41400 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888017842000 ffffea0000b44a00 dead000000000002 raw: 0000000000000000 0000000000080008 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 1, tgid 1 (swapper/0), ts 13748915565, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1561 [inline] get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191 __alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2120 alloc_slab_page+0x5d/0x170 mm/slub.c:1876 allocate_slab mm/slub.c:2023 [inline] new_slab+0x87/0x2e0 mm/slub.c:2076 ___slab_alloc+0xc6d/0x12f0 mm/slub.c:3230 __slab_alloc mm/slub.c:3329 [inline] __slab_alloc_node mm/slub.c:3382 [inline] slab_alloc_node mm/slub.c:3475 [inline] __kmem_cache_alloc_node+0x1a2/0x260 mm/slub.c:3524 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc_node+0xa4/0x230 mm/slab_common.c:1014 kmalloc_node include/linux/slab.h:620 [inline] kvmalloc_node+0x70/0x180 mm/util.c:617 kvmalloc include/linux/slab.h:738 [inline] kvmalloc_array include/linux/slab.h:756 [inline] kvcalloc include/linux/slab.h:761 [inline] ip_set_net_init+0x83/0x130 net/netfilter/ipset/ip_set_core.c:2380 ops_init+0x397/0x640 net/core/net_namespace.c:139 __register_pernet_operations net/core/net_namespace.c:1220 [inline] register_pernet_operations+0x2a7/0x5f0 net/core/net_namespace.c:1293 register_pernet_subsys+0x28/0x40 net/core/net_namespace.c:1334 ip_set_init+0x17/0xd0 net/netfilter/ipset/ip_set_core.c:2417 do_one_initcall+0x1fd/0x750 init/main.c:1238 page_owner free stack trace missing Memory state around the buggy address: ffff88802d053300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802d053380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88802d053400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802d053480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802d053500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================