Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k FS IPVS: ftp: loaded support on port[0] = 21 ================================================================== BUG: KASAN: wild-memory-access in hfsplus_bnode_read+0xc7/0x180 fs/hfsplus/bnode.c:32 Read of size 1 at addr 0005080000000fff by task syz-executor.0/3031 CPU: 0 PID: 3031 Comm: syz-executor.0 Not tainted 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x10c/0x17a lib/dump_stack.c:113 kasan_report_error mm/kasan/report.c:352 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold.7+0x6d/0x305 mm/kasan/report.c:396 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13c/0x1b0 mm/kasan/kasan.c:267 memcpy+0x23/0x50 mm/kasan/kasan.c:302 hfsplus_bnode_read+0xc7/0x180 fs/hfsplus/bnode.c:32 hfsplus_bnode_read_u16 fs/hfsplus/bnode.c:47 [inline] hfsplus_bnode_find+0x544/0x950 fs/hfsplus/bnode.c:533 hfsplus_bmap_alloc+0x33a/0xc60 fs/hfsplus/btree.c:377 hfs_btree_inc_height+0xd1/0x970 fs/hfsplus/brec.c:470 hfsplus_brec_insert+0x1ad/0xc40 fs/hfsplus/brec.c:75 __hfsplus_ext_write_extent+0x3b5/0x500 fs/hfsplus/extents.c:103 __hfsplus_ext_cache_extent fs/hfsplus/extents.c:182 [inline] hfsplus_ext_read_extent+0x7e4/0xd70 fs/hfsplus/extents.c:214 hfsplus_file_extend+0x5d7/0xee0 fs/hfsplus/extents.c:455 hfsplus_get_block+0x132/0x8d0 fs/hfsplus/extents.c:239 __block_write_begin_int+0x35f/0x1a90 fs/buffer.c:1966 __block_write_begin fs/buffer.c:2016 [inline] block_write_begin+0x48/0x260 fs/buffer.c:2075 cont_write_begin+0x39c/0x5e0 fs/buffer.c:2428 hfsplus_write_begin+0x79/0x150 fs/hfsplus/inode.c:52 pagecache_write_begin+0x59/0xc0 mm/filemap.c:2983 cont_expand_zero fs/buffer.c:2355 [inline] cont_write_begin+0x1ce/0x5e0 fs/buffer.c:2418 hfsplus_write_begin+0x79/0x150 fs/hfsplus/inode.c:52 pagecache_write_begin+0x59/0xc0 mm/filemap.c:2983 generic_cont_expand_simple+0x102/0x140 fs/buffer.c:2319 hfsplus_setattr+0x119/0x1f0 fs/hfsplus/inode.c:257 notify_change+0x6ba/0xcb0 fs/attr.c:334 do_truncate+0xef/0x1a0 fs/open.c:63 do_sys_ftruncate+0x2be/0x480 fs/open.c:194 __do_sys_ftruncate fs/open.c:204 [inline] __se_sys_ftruncate fs/open.c:202 [inline] __x64_sys_ftruncate+0x54/0x80 fs/open.c:202 do_syscall_64+0xca/0x340 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f9ffb38ab29 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:00007f9ffaf0d0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007f9ffb4a9f80 RCX: 00007f9ffb38ab29 RDX: 0000000000000000 RSI: 0000000000048280 RDI: 0000000000000004 RBP: 00007f9ffb3d647a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f9ffb4a9f80 R15: 00007ffd0a021068 ==================================================================