================================================================== BUG: KASAN: slab-out-of-bounds in hfs_bnode_read+0x1b4/0x2dc fs/hfs/bnode.c:37 Write of size 94 at addr ffff0000e723c300 by task syz.8.127/5268 CPU: 0 PID: 5268 Comm: syz.8.127 Not tainted 5.15.180-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x174/0x1e4 mm/kasan/report.c:451 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x274/0x2b4 mm/kasan/generic.c:189 memcpy+0xb4/0xe8 mm/kasan/shadow.c:66 hfs_bnode_read+0x1b4/0x2dc fs/hfs/bnode.c:37 hfs_bnode_read_key+0x154/0x21c fs/hfs/bnode.c:73 hfs_brec_insert+0x620/0x97c fs/hfs/brec.c:159 hfs_cat_create+0x340/0x844 fs/hfs/catalog.c:118 hfs_create+0x70/0xe4 fs/hfs/dir.c:202 lookup_open fs/namei.c:3462 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0xf18/0x26cc fs/namei.c:3739 do_filp_open+0x1a8/0x3b4 fs/namei.c:3769 file_open_name fs/open.c:1198 [inline] filp_open+0x1f4/0x258 fs/open.c:1218 do_coredump+0x1d18/0x2890 fs/coredump.c:767 get_signal+0x3dc/0x1550 kernel/signal.c:2886 do_signal arch/arm64/kernel/signal.c:890 [inline] do_notify_resume+0x320/0x32b8 arch/arm64/kernel/signal.c:943 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_da+0x118/0x20c arch/arm64/kernel/entry-common.c:495 el0t_64_sync_handler+0xc0/0xe4 arch/arm64/kernel/entry-common.c:629 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Allocated by task 5268: 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+0xbc/0xfc mm/kasan/common.c:513 __kasan_kmalloc+0x10/0x1c mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc+0x29c/0x4c8 mm/slub.c:4407 kmalloc include/linux/slab.h:609 [inline] hfs_find_init+0x88/0x1c8 fs/hfs/bfind.c:21 hfs_cat_create+0x168/0x844 fs/hfs/catalog.c:96 hfs_create+0x70/0xe4 fs/hfs/dir.c:202 lookup_open fs/namei.c:3462 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0xf18/0x26cc fs/namei.c:3739 do_filp_open+0x1a8/0x3b4 fs/namei.c:3769 file_open_name fs/open.c:1198 [inline] filp_open+0x1f4/0x258 fs/open.c:1218 do_coredump+0x1d18/0x2890 fs/coredump.c:767 get_signal+0x3dc/0x1550 kernel/signal.c:2886 do_signal arch/arm64/kernel/signal.c:890 [inline] do_notify_resume+0x320/0x32b8 arch/arm64/kernel/signal.c:943 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_da+0x118/0x20c arch/arm64/kernel/entry-common.c:495 el0t_64_sync_handler+0xc0/0xe4 arch/arm64/kernel/entry-common.c:629 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the object at ffff0000e723c300 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 0 bytes inside of 128-byte region [ffff0000e723c300, ffff0000e723c380) The buggy address belongs to the page: page:000000005f163a20 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12723c flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000200 fffffc000327a340 0000000500000005 ffff0000c0002300 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000e723c200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000e723c280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000e723c300: 00 00 00 00 00 00 00 00 00 06 fc fc fc fc fc fc ^ ffff0000e723c380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000e723c400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== Core dump to core aborted: cannot preserve file permissions