loop2: detected capacity change from 0 to 1024 hfsplus: xattr exists yet ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x624/0x1018 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff0000cf87e218 by task syz-executor.2/8407 CPU: 1 PID: 8407 Comm: syz-executor.2 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 8407: 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 call_rcu+0xfc/0xa40 kernel/rcu/tree.c:2844 sctp_transport_destroy net/sctp/transport.c:171 [inline] sctp_transport_put+0xf0/0x174 net/sctp/transport.c:484 sctp_transport_free+0x110/0x120 net/sctp/transport.c:142 sctp_association_free+0x5c0/0x6e0 net/sctp/associola.c:381 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:944 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1331 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline] sctp_do_sm+0x31fc/0x4e80 net/sctp/sm_sideeffect.c:1170 sctp_assoc_bh_rcv+0x380/0x710 net/sctp/associola.c:1053 sctp_inq_push+0x19c/0x1c0 net/sctp/inqueue.c:80 sctp_rcv+0x1c24/0x2430 net/sctp/input.c:258 sctp6_rcv+0x4c/0x7c net/sctp/ipv6.c:1109 ip6_protocol_deliver_rcu+0x958/0x1214 net/ipv6/ip6_input.c:438 ip6_input_finish+0x164/0x298 net/ipv6/ip6_input.c:483 NF_HOOK+0x328/0x3d4 include/linux/netfilter.h:302 ip6_input+0x70/0x84 net/ipv6/ip6_input.c:492 dst_input include/net/dst.h:454 [inline] ip6_rcv_finish+0x1f4/0x220 net/ipv6/ip6_input.c:79 NF_HOOK+0x328/0x3d4 include/linux/netfilter.h:302 ipv6_rcv+0x98/0xb8 net/ipv6/ip6_input.c:310 __netif_receive_skb_one_core net/core/dev.c:5528 [inline] __netif_receive_skb+0x18c/0x400 net/core/dev.c:5642 process_backlog+0x410/0x784 net/core/dev.c:5970 __napi_poll+0xb4/0x3f0 net/core/dev.c:6537 napi_poll net/core/dev.c:6604 [inline] net_rx_action+0x5cc/0xd3c net/core/dev.c:6718 __do_softirq+0x314/0xe38 kernel/softirq.c:571 The buggy address belongs to the object at ffff0000cf87e000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 536 bytes inside of 1024-byte region [ffff0000cf87e000, ffff0000cf87e400) The buggy address belongs to the physical page: page:0000000073e41bd9 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10f878 head:0000000073e41bd9 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x5ffe00000010200(slab|head|node=0|zone=2|lastcpupid=0xfff) raw: 05ffe00000010200 dead000000000100 dead000000000122 ffff0000c0002780 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000cf87e100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000cf87e180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000cf87e200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000cf87e280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000cf87e300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== hfsplus: unicode conversion failed