WARNING: the mand mount option is being deprecated and will be removed in v5.15! ====================================================== ================================================================== BUG: KASAN: wild-memory-access in memcpy include/linux/string.h:376 [inline] BUG: KASAN: wild-memory-access in hfsplus_bnode_read+0x154/0x1a0 fs/hfsplus/bnode.c:32 Read of size 1 at addr 0005088000000fff by task syz-executor268/7996 CPU: 1 PID: 7996 Comm: syz-executor268 Not tainted 4.14.302-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 kasan_report_error.cold+0x144/0x191 mm/kasan/report.c:349 kasan_report+0x6f/0x80 mm/kasan/report.c:409 memcpy+0x20/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:376 [inline] hfsplus_bnode_read+0x154/0x1a0 fs/hfsplus/bnode.c:32 hfsplus_bnode_read_u16 fs/hfsplus/bnode.c:47 [inline] hfsplus_bnode_find+0x6e0/0x9e0 fs/hfsplus/bnode.c:537 hfsplus_bmap_alloc+0xca/0x740 fs/hfsplus/btree.c:389 hfs_btree_inc_height.isra.0+0xb7/0x910 fs/hfsplus/brec.c:474 hfsplus_brec_insert+0x8f3/0xb30 fs/hfsplus/brec.c:75 __hfsplus_ext_write_extent+0x439/0x560 fs/hfsplus/extents.c:107 __hfsplus_ext_cache_extent fs/hfsplus/extents.c:186 [inline] hfsplus_ext_read_extent+0x81a/0x9e0 fs/hfsplus/extents.c:218 hfsplus_file_extend+0x616/0xef0 fs/hfsplus/extents.c:456 hfsplus_get_block+0x15b/0x820 fs/hfsplus/extents.c:245 __block_write_begin_int+0x35c/0x11d0 fs/buffer.c:2038 __block_write_begin fs/buffer.c:2088 [inline] block_write_begin+0x58/0x270 fs/buffer.c:2147 cont_write_begin+0x4a3/0x740 fs/buffer.c:2497 hfsplus_write_begin+0x87/0x130 fs/hfsplus/inode.c:53 cont_expand_zero fs/buffer.c:2424 [inline] cont_write_begin+0x296/0x740 fs/buffer.c:2487 hfsplus_write_begin+0x87/0x130 fs/hfsplus/inode.c:53 generic_cont_expand_simple+0xe1/0x130 fs/buffer.c:2388 hfsplus_setattr+0x139/0x310 fs/hfsplus/inode.c:258 notify_change+0x56b/0xd10 fs/attr.c:315 do_truncate+0xff/0x1a0 fs/open.c:63 do_sys_ftruncate.constprop.0+0x3a3/0x480 fs/open.c:205 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f17619207b9 RSP: 002b:00007ffcd5e2be68 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f17619207b9 RDX: 0000000000000000 RSI: 0000000000048280 RDI: 0000000000000004 RBP: 00007f17618e0050 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000005f1 R11: 0000000000000246 R12: 00007f17618e00e0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ==================================================================