loop4: 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+0x670/0x10f0 fs/hfsplus/unicode.c:210 Read of size 2 at addr ffff0000d8858218 by task syz.4.766/7166 CPU: 0 PID: 7166 Comm: syz.4.766 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0x100 mm/kasan/report.c:524 __asan_report_load2_noabort+0x2c/0x38 mm/kasan/report_generic.c:349 hfsplus_uni2asc+0x670/0x10f0 fs/hfsplus/unicode.c:210 hfsplus_listxattr+0x4a8/0x9e8 fs/hfsplus/xattr.c:740 vfs_listxattr fs/xattr.c:457 [inline] listxattr+0x29c/0x3cc fs/xattr.c:804 path_listxattr+0xdc/0x1b4 fs/xattr.c:828 __do_sys_listxattr fs/xattr.c:840 [inline] __se_sys_listxattr fs/xattr.c:837 [inline] __arm64_sys_listxattr+0x80/0x94 fs/xattr.c:837 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 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 7166: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:53 kasan_save_alloc_info+0x28/0x34 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0xa0/0xb8 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc+0xec/0x178 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] hfsplus_find_init+0x84/0x1bc fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x2fc/0x9e8 fs/hfsplus/xattr.c:700 vfs_listxattr fs/xattr.c:457 [inline] listxattr+0x29c/0x3cc fs/xattr.c:804 path_listxattr+0xdc/0x1b4 fs/xattr.c:828 __do_sys_listxattr fs/xattr.c:840 [inline] __se_sys_listxattr fs/xattr.c:837 [inline] __arm64_sys_listxattr+0x80/0x94 fs/xattr.c:837 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 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:46 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 call_rcu+0x100/0x954 kernel/rcu/tree.c:2849 __qdisc_destroy+0x2a8/0x500 net/sched/sch_generic.c:1087 qdisc_put net/sched/sch_generic.c:1107 [inline] dev_shutdown+0x35c/0x47c net/sched/sch_generic.c:1495 unregister_netdevice_many+0x944/0x1740 net/core/dev.c:10981 rtnl_newlink_create net/core/rtnetlink.c:3453 [inline] __rtnl_newlink net/core/rtnetlink.c:3642 [inline] rtnl_newlink+0x16f8/0x1a1c net/core/rtnetlink.c:3655 rtnetlink_rcv_msg+0x734/0xce4 net/core/rtnetlink.c:6150 netlink_rcv_skb+0x208/0x3c4 net/netlink/af_netlink.c:2511 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:6168 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x60c/0x824 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x6e8/0x9b0 net/netlink/af_netlink.c:1872 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] ____sys_sendmsg+0x5b8/0x918 net/socket.c:2518 ___sys_sendmsg net/socket.c:2572 [inline] __sys_sendmsg+0x25c/0x320 net/socket.c:2601 __do_sys_sendmsg net/socket.c:2610 [inline] __se_sys_sendmsg net/socket.c:2608 [inline] __arm64_sys_sendmsg+0x80/0x94 net/socket.c:2608 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 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 The buggy address belongs to the object at ffff0000d8858000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 536 bytes inside of 1024-byte region [ffff0000d8858000, ffff0000d8858400) The buggy address belongs to the physical page: page:000000007966fb3b refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x118858 head:000000007966fb3b order:3 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 dead000000000100 dead000000000122 ffff0000c0002780 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d8858100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000d8858180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000d8858200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000d8858280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d8858300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================