================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x591/0x1200 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff888072f48218 by task syz.1.565/7050 CPU: 0 PID: 7050 Comm: syz.1.565 Not tainted 6.1.142-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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/0x220 mm/kasan/report.c:427 kasan_report+0x10b/0x140 mm/kasan/report.c:531 hfsplus_uni2asc+0x591/0x1200 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x58b/0xb80 fs/hfsplus/xattr.c:736 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:0x7fb12918e929 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:00007fb129f3e038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fb1293b5fa0 RCX: 00007fb12918e929 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000940 RBP: 00007fb129210b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb1293b5fa0 R15: 00007ffd67a4e8c8 Allocated by task 7050: 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] hfsplus_find_init+0x85/0x1c0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x38c/0xb80 fs/hfsplus/xattr.c:696 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 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 call_rcu+0x14b/0x970 kernel/rcu/tree.c:2845 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 The buggy address belongs to the object at ffff888072f48000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 536 bytes inside of 1024-byte region [ffff888072f48000, ffff888072f48400) The buggy address belongs to the physical page: page:ffffea0001cbd200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x72f48 head:ffffea0001cbd200 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001562400 dead000000000002 ffff888017441dc0 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 0x152a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 4340, tgid 4340 (kworker/u4:6), ts 93655933971, free_ts 85623019696 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:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x87/0x2c0 mm/slub.c:1992 ___slab_alloc+0xbc6/0x1220 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] __kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3437 __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_rx_mgmt_probe_beacon net/mac80211/ibss.c:1605 [inline] ieee80211_ibss_rx_queued_mgmt+0x3c4/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:3398 [inline] kmem_cache_alloc_node+0x14d/0x320 mm/slub.c:3443 __alloc_skb+0xfc/0x7e0 net/core/skbuff.c:505 alloc_skb include/linux/skbuff.h:1271 [inline] mld_newpack+0x12a/0xc60 net/ipv6/mcast.c:1746 add_grhead+0x5a/0x2a0 net/ipv6/mcast.c:1857 add_grec+0x13b2/0x1660 net/ipv6/mcast.c:1995 mld_send_cr net/ipv6/mcast.c:2121 [inline] mld_ifc_work+0x6e7/0xb40 net/ipv6/mcast.c:2659 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 Memory state around the buggy address: ffff888072f48100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888072f48180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888072f48200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888072f48280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888072f48300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================