================================================================== BUG: KASAN: slab-out-of-bounds in memcpy_from_iter lib/iov_iter.c:639 [inline] BUG: KASAN: slab-out-of-bounds in copy_page_from_iter_atomic+0xa34/0x1160 lib/iov_iter.c:872 Read of size 2048 at addr ffff0000e802e000 by task kworker/u4:7/6534 CPU: 1 PID: 6534 Comm: kworker/u4:7 Not tainted 6.4.0-rc7-syzkaller-ge40939bbfc68 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Workqueue: loop0 loop_workfn 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:351 [inline] print_report+0x174/0x514 mm/kasan/report.c:462 kasan_report+0xd4/0x130 mm/kasan/report.c:572 kasan_check_range+0x264/0x2a4 mm/kasan/generic.c:187 __asan_memcpy+0x3c/0x84 mm/kasan/shadow.c:105 memcpy_from_iter lib/iov_iter.c:639 [inline] copy_page_from_iter_atomic+0xa34/0x1160 lib/iov_iter.c:872 generic_perform_write+0x2fc/0x55c mm/filemap.c:3937 __generic_file_write_iter+0x168/0x388 mm/filemap.c:4057 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4089 do_iter_write+0x65c/0xa80 fs/read_write.c:860 vfs_iter_write+0x88/0xac fs/read_write.c:901 lo_write_bvec drivers/block/loop.c:249 [inline] lo_write_simple drivers/block/loop.c:271 [inline] do_req_filebacked drivers/block/loop.c:495 [inline] loop_handle_cmd drivers/block/loop.c:1888 [inline] loop_process_work+0x15e0/0x2534 drivers/block/loop.c:1923 loop_workfn+0x54/0x68 drivers/block/loop.c:1947 process_one_work+0x788/0x12d4 kernel/workqueue.c:2405 worker_thread+0x8e0/0xfe8 kernel/workqueue.c:2552 kthread+0x288/0x310 kernel/kthread.c:379 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:853 Allocated by task 6597: 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:510 ____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:966 [inline] __kmalloc+0xcc/0x1b8 mm/slab_common.c:979 kmalloc include/linux/slab.h:563 [inline] hfsplus_read_wrapper+0x3ac/0xfcc fs/hfsplus/wrapper.c:178 hfsplus_fill_super+0x2f0/0x166c fs/hfsplus/super.c:413 mount_bdev+0x274/0x370 fs/super.c:1380 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:641 legacy_get_tree+0xd4/0x16c fs/fs_context.c:610 vfs_get_tree+0x90/0x274 fs/super.c:1510 do_new_mount+0x25c/0x8c4 fs/namespace.c:3039 path_mount+0x590/0xe04 fs/namespace.c:3369 do_mount fs/namespace.c:3382 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3568 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:191 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 The buggy address belongs to the object at ffff0000e802e000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes inside of allocated 512-byte region [ffff0000e802e000, ffff0000e802e200) The buggy address belongs to the physical page: page:000000007d3feca6 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12802c head:000000007d3feca6 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000010200 ffff0000c0002600 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000e802e100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000e802e180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000e802e200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000e802e280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000e802e300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================