loop0: detected capacity change from 0 to 64 hfs: unable to locate alternate MDB hfs: continuing without an alternate MDB ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy_from_page include/linux/highmem.h:417 [inline] BUG: KASAN: slab-out-of-bounds in hfs_bnode_read fs/hfs/bnode.c:35 [inline] BUG: KASAN: slab-out-of-bounds in hfs_bnode_read_key+0x310/0x454 fs/hfs/bnode.c:70 Write of size 256 at addr ffff0000de848e00 by task syz-executor.0/6423 CPU: 0 PID: 6423 Comm: syz-executor.0 Not tainted 6.5.0-rc7-syzkaller-00071-gfe4469582053 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x174/0x514 mm/kasan/report.c:475 kasan_report+0xd8/0x138 mm/kasan/report.c:588 kasan_check_range+0x254/0x294 mm/kasan/generic.c:187 __asan_memcpy+0x54/0x84 mm/kasan/shadow.c:106 memcpy_from_page include/linux/highmem.h:417 [inline] hfs_bnode_read fs/hfs/bnode.c:35 [inline] hfs_bnode_read_key+0x310/0x454 fs/hfs/bnode.c:70 hfs_brec_insert+0x508/0x97c fs/hfs/brec.c:141 hfs_cat_create+0x4f0/0x844 fs/hfs/catalog.c:131 hfs_create+0x70/0xe4 fs/hfs/dir.c:202 lookup_open fs/namei.c:3492 [inline] open_last_lookups fs/namei.c:3560 [inline] path_openat+0xf80/0x27f8 fs/namei.c:3790 do_filp_open+0x1bc/0x3cc fs/namei.c:3820 do_sys_openat2+0x124/0x1b8 fs/open.c:1407 do_sys_open fs/open.c:1422 [inline] __do_sys_openat fs/open.c:1438 [inline] __se_sys_openat fs/open.c:1433 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1433 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x58/0x16c arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Allocated by task 6423: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x7c mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:511 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:985 [inline] __kmalloc+0xcc/0x1b8 mm/slab_common.c:998 kmalloc include/linux/slab.h:586 [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:3492 [inline] open_last_lookups fs/namei.c:3560 [inline] path_openat+0xf80/0x27f8 fs/namei.c:3790 do_filp_open+0x1bc/0x3cc fs/namei.c:3820 do_sys_openat2+0x124/0x1b8 fs/open.c:1407 do_sys_open fs/open.c:1422 [inline] __do_sys_openat fs/open.c:1438 [inline] __se_sys_openat fs/open.c:1433 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1433 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x58/0x16c arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 The buggy address belongs to the object at ffff0000de848e00 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 0 bytes inside of allocated 78-byte region [ffff0000de848e00, ffff0000de848e4e) The buggy address belongs to the physical page: page:00000000922e9e65 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff0000de848f00 pfn:0x11e848 anon flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000000200 ffff0000c0001780 0000000000000000 0000000000000001 raw: ffff0000de848f00 000000008020001e 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000de848d00: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff0000de848d80: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff0000de848e00: 00 00 00 00 00 00 00 00 00 06 fc fc fc fc fc fc ^ ffff0000de848e80: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff0000de848f00: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================