================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x624/0x1018 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff0000f16f7218 by task syz-executor.3/7354 CPU: 0 PID: 7354 Comm: syz-executor.3 Not tainted 6.1.87-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x174/0x4c0 mm/kasan/report.c:395 kasan_report+0xd4/0x130 mm/kasan/report.c:495 __asan_report_load2_noabort+0x2c/0x38 mm/kasan/report_generic.c:349 hfsplus_uni2asc+0x624/0x1018 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x5bc/0xc9c fs/hfsplus/xattr.c:736 vfs_listxattr fs/xattr.c:457 [inline] listxattr+0x29c/0x3cc fs/xattr.c:804 path_listxattr fs/xattr.c:828 [inline] __do_sys_llistxattr fs/xattr.c:846 [inline] __se_sys_llistxattr fs/xattr.c:843 [inline] __arm64_sys_llistxattr+0x13c/0x21c fs/xattr.c:843 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Allocated by task 7354: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:955 [inline] __kmalloc+0xd8/0x1c4 mm/slab_common.c:968 kmalloc include/linux/slab.h:561 [inline] hfsplus_find_init+0x84/0x1bc fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x31c/0xc9c fs/hfsplus/xattr.c:696 vfs_listxattr fs/xattr.c:457 [inline] listxattr+0x29c/0x3cc fs/xattr.c:804 path_listxattr fs/xattr.c:828 [inline] __do_sys_llistxattr fs/xattr.c:846 [inline] __se_sys_llistxattr fs/xattr.c:843 [inline] __arm64_sys_llistxattr+0x13c/0x21c fs/xattr.c:843 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:45 __kasan_record_aux_stack+0xcc/0xe8 mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 kvfree_call_rcu+0xb4/0x714 kernel/rcu/tree.c:3400 neigh_destroy+0x470/0x6b0 net/core/neighbour.c:918 neigh_release include/net/neighbour.h:447 [inline] neigh_cleanup_and_release+0x15c/0x414 net/core/neighbour.c:103 neigh_del net/core/neighbour.c:225 [inline] neigh_remove_one+0x320/0x428 net/core/neighbour.c:246 neigh_forced_gc net/core/neighbour.c:279 [inline] neigh_alloc net/core/neighbour.c:485 [inline] ___neigh_create+0x4c0/0x25fc net/core/neighbour.c:648 __neigh_create+0x44/0x58 net/core/neighbour.c:737 ip6_finish_output2+0x18e0/0x1aa8 net/ipv6/ip6_output.c:125 __ip6_finish_output net/ipv6/ip6_output.c:201 [inline] ip6_finish_output+0x5a4/0x940 net/ipv6/ip6_output.c:212 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip6_output+0x270/0x594 net/ipv6/ip6_output.c:233 dst_output include/net/dst.h:444 [inline] NF_HOOK include/linux/netfilter.h:302 [inline] ndisc_send_skb+0xc38/0x179c net/ipv6/ndisc.c:509 ndisc_send_rs+0x47c/0x5d4 net/ipv6/ndisc.c:719 addrconf_rs_timer+0x300/0x58c net/ipv6/addrconf.c:3962 call_timer_fn+0x1c0/0xa1c kernel/time/timer.c:1504 expire_timers kernel/time/timer.c:1549 [inline] __run_timers+0x554/0x718 kernel/time/timer.c:1820 run_timer_softirq+0x7c/0x114 kernel/time/timer.c:1833 __do_softirq+0x314/0xe38 kernel/softirq.c:571 The buggy address belongs to the object at ffff0000f16f7000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 536 bytes inside of 1024-byte region [ffff0000f16f7000, ffff0000f16f7400) The buggy address belongs to the physical page: page:00000000d0de1d9e refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1316f0 head:00000000d0de1d9e order:3 compound_mapcount:0 compound_pincount:0 flags: 0x5ffe00000010200(slab|head|node=0|zone=2|lastcpupid=0xfff) raw: 05ffe00000010200 0000000000000000 dead000000000001 ffff0000c0002780 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000f16f7100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000f16f7180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000f16f7200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000f16f7280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000f16f7300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== hfsplus: unicode conversion failed