loop2: detected capacity change from 0 to 1024 hfsplus: invalid length 256 has been corrected to 255 ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x5b9/0x1240 fs/hfsplus/unicode.c:210 Read of size 2 at addr ffff88807d501a18 by task syz.2.294/5399 CPU: 0 PID: 5399 Comm: syz.2.294 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 hfsplus_uni2asc+0x5b9/0x1240 fs/hfsplus/unicode.c:210 hfsplus_listxattr+0x58b/0xb80 fs/hfsplus/xattr.c:740 vfs_listxattr fs/xattr.c:457 [inline] listxattr+0x283/0x2e0 fs/xattr.c:804 path_listxattr+0xd9/0x1b0 fs/xattr.c:828 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f7b99f8f6c9 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:00007f7b9adef038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c3 RAX: ffffffffffffffda RBX: 00007f7b9a1e5fa0 RCX: 00007f7b99f8f6c9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000080 RBP: 00007f7b9a011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7b9a1e6038 R14: 00007f7b9a1e5fa0 R15: 00007fff1dcd9018 Allocated by task 5399: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc+0xb0/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] hfsplus_find_init+0x85/0x1c0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x38c/0xb80 fs/hfsplus/xattr.c:700 vfs_listxattr fs/xattr.c:457 [inline] listxattr+0x283/0x2e0 fs/xattr.c:804 path_listxattr+0xd9/0x1b0 fs/xattr.c:828 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88807d501800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 536 bytes inside of 1024-byte region [ffff88807d501800, ffff88807d501c00) The buggy address belongs to the physical page: page:ffffea0001f54000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7d500 head:ffffea0001f54000 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000001 ffff888017441dc0 raw: 0000000000000000 0000000000100010 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 0x152a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 4356, tgid 4356 (kworker/u4:6), ts 63091172233, free_ts 57964825419 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 alloc_slab_page+0x5d/0x160 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2c0 mm/slub.c:1997 ___slab_alloc+0xbc6/0x1230 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] __kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3398 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc+0xa0/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] ieee802_11_parse_elems_full+0xb2/0x1230 net/mac80211/util.c:1503 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2246 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2253 [inline] ieee80211_bss_info_update+0x7ed/0xbc0 net/mac80211/scan.c:212 ieee80211_rx_bss_info net/mac80211/ibss.c:1120 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1609 [inline] ieee80211_ibss_rx_queued_mgmt+0x17b4/0x2b10 net/mac80211/ibss.c:1638 ieee80211_iface_process_skb net/mac80211/iface.c:1671 [inline] ieee80211_iface_work+0x726/0xc80 net/mac80211/iface.c:1725 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 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 mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc+0x123/0x2f0 mm/slub.c:3383 mt_alloc_one lib/maple_tree.c:152 [inline] mas_alloc_nodes+0x2ec/0x890 lib/maple_tree.c:1277 mas_node_count_gfp lib/maple_tree.c:1359 [inline] mas_preallocate+0x161/0x3c0 lib/maple_tree.c:5807 __vma_adjust+0x2e2/0x1c60 mm/mmap.c:724 vma_adjust include/linux/mm.h:2810 [inline] shift_arg_pages fs/exec.c:740 [inline] setup_arg_pages+0x98e/0xab0 fs/exec.c:835 load_elf_binary+0xb97/0x26d0 fs/binfmt_elf.c:1046 search_binary_handler fs/exec.c:1764 [inline] exec_binprm fs/exec.c:1805 [inline] bprm_execve+0xb10/0x18a0 fs/exec.c:1874 kernel_execve+0x8b9/0x9c0 fs/exec.c:2039 call_usermodehelper_exec_async+0x207/0x350 kernel/umh.c:113 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff88807d501900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807d501980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88807d501a00: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88807d501a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807d501b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================