loop0: detected capacity change from 0 to 1024 ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x576/0x11f0 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88814705a40c by task syz-executor297/3499 CPU: 1 PID: 3499 Comm: syz-executor297 Not tainted 5.15.155-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 hfsplus_uni2asc+0x576/0x11f0 fs/hfsplus/unicode.c:179 hfsplus_readdir+0x90c/0x12f0 fs/hfsplus/dir.c:207 iterate_dir+0x224/0x570 __do_sys_getdents fs/readdir.c:286 [inline] __se_sys_getdents+0x1e8/0x4c0 fs/readdir.c:271 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f11c44a9639 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff6ccc5a08 EFLAGS: 00000246 ORIG_RAX: 000000000000004e RAX: ffffffffffffffda RBX: 00007fff6ccc5bd8 RCX: 00007f11c44a9639 RDX: 0000000000000090 RSI: 0000000020000180 RDI: 0000000000000004 RBP: 00007f11c451d610 R08: 0000000000000000 R09: 00007fff6ccc5bd8 R10: 000000000000069c R11: 0000000000000246 R12: 0000000000000001 R13: 00007fff6ccc5bc8 R14: 0000000000000001 R15: 0000000000000001 Allocated by task 3499: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc+0xba/0xf0 mm/kasan/common.c:513 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc+0x168/0x300 mm/slub.c:4407 kmalloc include/linux/slab.h:596 [inline] hfsplus_find_init+0x81/0x1c0 fs/hfsplus/bfind.c:21 hfsplus_readdir+0x204/0x12f0 fs/hfsplus/dir.c:144 iterate_dir+0x224/0x570 __do_sys_getdents fs/readdir.c:286 [inline] __se_sys_getdents+0x1e8/0x4c0 fs/readdir.c:271 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff88814705a000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1036 bytes inside of 2048-byte region [ffff88814705a000, ffff88814705a800) The buggy address belongs to the page: page:ffffea00051c1600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x147058 head:ffffea00051c1600 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x57ff80000010200(slab|head|node=1|zone=2|lastcpupid=0xfff) raw: 057ff80000010200 dead000000000100 dead000000000122 ffff888011c42000 raw: 0000000000000000 0000000080080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, ts 6705429472, free_ts 0 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159 __alloc_pages+0x272/0x700 mm/page_alloc.c:5423 alloc_page_interleave+0x22/0x1c0 mm/mempolicy.c:2031 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xbb/0x4b0 mm/slub.c:1975 ___slab_alloc+0x6f6/0xe10 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc_trace+0x1a0/0x290 mm/slub.c:3245 kmalloc include/linux/slab.h:591 [inline] kzalloc include/linux/slab.h:721 [inline] acpi_os_allocate_zeroed include/acpi/platform/aclinuxex.h:57 [inline] acpi_ds_create_walk_state+0xff/0x2a0 drivers/acpi/acpica/dswstate.c:518 acpi_ps_execute_method+0x241/0x870 drivers/acpi/acpica/psxface.c:134 acpi_ns_evaluate+0x636/0x9f0 drivers/acpi/acpica/nseval.c:205 acpi_evaluate_object+0x597/0xaf0 drivers/acpi/acpica/nsxfeval.c:354 acpi_evaluate_integer+0x117/0x2e0 drivers/acpi/utils.c:260 acpi_bus_get_status_handle drivers/acpi/bus.c:83 [inline] acpi_bus_get_status+0x176/0x3a0 drivers/acpi/bus.c:112 acpi_serdev_check_resources drivers/tty/serdev/core.c:645 [inline] acpi_serdev_add_device+0x1a9/0x870 drivers/tty/serdev/core.c:720 acpi_ns_walk_namespace+0x28c/0x4e0 acpi_walk_namespace+0xe7/0x130 drivers/acpi/acpica/nsxfeval.c:606 acpi_serdev_register_devices drivers/tty/serdev/core.c:734 [inline] serdev_controller_add+0x370/0x4c0 drivers/tty/serdev/core.c:774 page_owner free stack trace missing Memory state around the buggy address: ffff88814705a300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88814705a380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88814705a400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88814705a480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88814705a500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================