================================================================== BUG: KASAN: wild-memory-access in memcpy_from_page include/linux/highmem.h:423 [inline] BUG: KASAN: wild-memory-access in hfsplus_bnode_read+0x100/0x240 fs/hfsplus/bnode.c:32 Read of size 1 at addr 0005088000000fff by task syz-executor.0/5521 CPU: 2 UID: 0 PID: 5521 Comm: syz-executor.0 Not tainted 6.11.0-syzkaller-g1868f9d0260e-dirty #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 kasan_report+0xd9/0x110 mm/kasan/report.c:601 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0xef/0x1a0 mm/kasan/generic.c:189 __asan_memcpy+0x23/0x60 mm/kasan/shadow.c:105 memcpy_from_page include/linux/highmem.h:423 [inline] hfsplus_bnode_read+0x100/0x240 fs/hfsplus/bnode.c:32 hfsplus_bnode_read_u16 fs/hfsplus/bnode.c:45 [inline] hfsplus_bnode_find+0x860/0xcb0 fs/hfsplus/bnode.c:522 hfsplus_bmap_alloc+0x10e/0x830 fs/hfsplus/btree.c:390 hfs_btree_inc_height.isra.0+0x100/0x8c0 fs/hfsplus/brec.c:475 hfsplus_brec_insert+0xa02/0xc50 fs/hfsplus/brec.c:75 __hfsplus_ext_write_extent+0x4a0/0x5e0 fs/hfsplus/extents.c:107 __hfsplus_ext_cache_extent+0x98/0x9d0 fs/hfsplus/extents.c:186 hfsplus_ext_read_extent+0x200/0x250 fs/hfsplus/extents.c:218 hfsplus_file_extend+0x699/0x1090 fs/hfsplus/extents.c:462 hfsplus_get_block+0x1ae/0x9e0 fs/hfsplus/extents.c:245 __block_write_begin_int+0x4fb/0x16e0 fs/buffer.c:2121 block_write_begin+0x9a/0x1d0 fs/buffer.c:2231 cont_write_begin+0x61d/0x950 fs/buffer.c:2582 hfsplus_write_begin+0x64/0x120 fs/hfsplus/inode.c:46 cont_expand_zero fs/buffer.c:2509 [inline] cont_write_begin+0x34e/0x950 fs/buffer.c:2572 hfsplus_write_begin+0x64/0x120 fs/hfsplus/inode.c:46 generic_cont_expand_simple+0x121/0x210 fs/buffer.c:2473 hfsplus_setattr+0x250/0x320 fs/hfsplus/inode.c:258 notify_change+0x6a6/0x1230 fs/attr.c:503 do_truncate+0x15c/0x220 fs/open.c:65 do_ftruncate+0x5d9/0x720 fs/open.c:181 do_sys_ftruncate fs/open.c:199 [inline] __do_sys_ftruncate fs/open.c:207 [inline] __se_sys_ftruncate fs/open.c:205 [inline] __x64_sys_ftruncate+0xa9/0x110 fs/open.c:205 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f486f87dda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f48705910c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007f486f9abf80 RCX: 00007f486f87dda9 RDX: 0000000000000000 RSI: 0000000000048280 RDI: 0000000000000004 RBP: 00007f486f8ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f486f9abf80 R15: 00007fff0407f1d8 ==================================================================