================================================================== BUG: KASAN: wild-memory-access in memcpy_from_page include/linux/highmem.h:417 [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/5440 CPU: 1 PID: 5440 Comm: syz-executor.0 Not tainted 6.10.0-rc6-syzkaller-00163-g661e504db04c #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:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 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:417 [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:461 hfsplus_get_block+0x1ae/0x9e0 fs/hfsplus/extents.c:245 __block_write_begin_int+0x4fb/0x16e0 fs/buffer.c:2128 __block_write_begin fs/buffer.c:2177 [inline] block_write_begin+0xb1/0x4a0 fs/buffer.c:2236 cont_write_begin+0x53d/0x740 fs/buffer.c:2590 hfsplus_write_begin+0x87/0x150 fs/hfsplus/inode.c:47 cont_expand_zero fs/buffer.c:2517 [inline] cont_write_begin+0x333/0x740 fs/buffer.c:2580 hfsplus_write_begin+0x87/0x150 fs/hfsplus/inode.c:47 generic_cont_expand_simple+0x121/0x210 fs/buffer.c:2481 hfsplus_setattr+0x193/0x310 fs/hfsplus/inode.c:259 notify_change+0x742/0x11f0 fs/attr.c:497 do_truncate+0x15c/0x220 fs/open.c:65 do_ftruncate+0x5e5/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:0x7fbdd427dda9 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:00007fbdd50aa0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007fbdd43abf80 RCX: 00007fbdd427dda9 RDX: 0000000000000000 RSI: 0000000000048280 RDI: 0000000000000004 RBP: 00007fbdd42ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fbdd43abf80 R15: 00007ffe0b1515b8 ==================================================================