================================================================== BUG: KASAN: slab-out-of-bounds in memcpy_from_iter lib/iov_iter.c:73 [inline] BUG: KASAN: slab-out-of-bounds in iterate_bvec include/linux/iov_iter.h:122 [inline] BUG: KASAN: slab-out-of-bounds in iterate_and_advance2 include/linux/iov_iter.h:249 [inline] BUG: KASAN: slab-out-of-bounds in iterate_and_advance include/linux/iov_iter.h:271 [inline] BUG: KASAN: slab-out-of-bounds in __copy_from_iter lib/iov_iter.c:249 [inline] BUG: KASAN: slab-out-of-bounds in copy_page_from_iter_atomic+0xa1c/0x168c lib/iov_iter.c:481 Read of size 1024 at addr ffff0000d10a9c00 by task kworker/u8:6/586 CPU: 0 PID: 586 Comm: kworker/u8:6 Not tainted 6.9.0-rc7-syzkaller-gfda5695d692c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: loop0 loop_rootcg_workfn Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:317 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x198/0x538 mm/kasan/report.c:488 kasan_report+0xd8/0x138 mm/kasan/report.c:601 kasan_check_range+0x268/0x2a8 mm/kasan/generic.c:189 __asan_memcpy+0x3c/0x84 mm/kasan/shadow.c:105 memcpy_from_iter lib/iov_iter.c:73 [inline] iterate_bvec include/linux/iov_iter.h:122 [inline] iterate_and_advance2 include/linux/iov_iter.h:249 [inline] iterate_and_advance include/linux/iov_iter.h:271 [inline] __copy_from_iter lib/iov_iter.c:249 [inline] copy_page_from_iter_atomic+0xa1c/0x168c lib/iov_iter.c:481 generic_perform_write+0x310/0x588 mm/filemap.c:3982 shmem_file_write_iter+0x110/0x138 mm/shmem.c:2920 do_iter_readv_writev+0x438/0x658 vfs_iter_write+0x31c/0x6b8 fs/read_write.c:895 lo_write_bvec drivers/block/loop.c:246 [inline] lo_write_simple drivers/block/loop.c:267 [inline] do_req_filebacked drivers/block/loop.c:491 [inline] loop_handle_cmd drivers/block/loop.c:1907 [inline] loop_process_work+0x1128/0x1d80 drivers/block/loop.c:1942 loop_rootcg_workfn+0x28/0x38 drivers/block/loop.c:1973 process_one_work+0x7b8/0x15d4 kernel/workqueue.c:3267 process_scheduled_works kernel/workqueue.c:3348 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:3429 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 Allocated by task 6239: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:68 kasan_save_alloc_info+0x40/0x50 mm/kasan/generic.c:565 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:3966 [inline] __kmalloc+0x2b8/0x508 mm/slub.c:3979 kmalloc include/linux/slab.h:632 [inline] hfsplus_read_wrapper+0x3ac/0xfcc fs/hfsplus/wrapper.c:179 hfsplus_fill_super+0x2f0/0x166c fs/hfsplus/super.c:419 mount_bdev+0x1d4/0x2a0 fs/super.c:1658 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:647 legacy_get_tree+0xd4/0x16c fs/fs_context.c:662 vfs_get_tree+0x90/0x288 fs/super.c:1779 do_new_mount+0x278/0x900 fs/namespace.c:3352 path_mount+0x590/0xe04 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount fs/namespace.c:3875 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3875 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 The buggy address belongs to the object at ffff0000d10a9c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes inside of allocated 512-byte region [ffff0000d10a9c00, ffff0000d10a9e00) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1110a8 head: order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000000840(slab|head|node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000000840 ffff0000c0001c80 fffffdffc3634c00 dead000000000002 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 head: 05ffc00000000840 ffff0000c0001c80 fffffdffc3634c00 dead000000000002 head: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 head: 05ffc00000000002 fffffdffc3442a01 fffffdffc3442a48 00000000ffffffff head: 0000000400000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d10a9d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000d10a9d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000d10a9e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000d10a9e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d10a9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================