================================================================== 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:268 [inline] BUG: KASAN: slab-out-of-bounds in copy_page_from_iter_atomic+0x99f/0x1e20 lib/iov_iter.c:500 Read of size 2048 at addr ffff88807240f000 by task kworker/u4:3/48 CPU: 1 PID: 48 Comm: kworker/u4:3 Not tainted 6.6.0-syzkaller-16153-g18553507f60f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Workqueue: loop0 loop_workfn Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x15f/0x540 mm/kasan/report.c:475 kasan_report+0x13e/0x170 mm/kasan/report.c:588 kasan_check_range+0x27a/0x290 mm/kasan/generic.c:187 __asan_memcpy+0x25/0x60 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:268 [inline] copy_page_from_iter_atomic+0x99f/0x1e20 lib/iov_iter.c:500 generic_perform_write+0x38e/0x630 mm/filemap.c:3926 shmem_file_write_iter+0xf8/0x110 mm/shmem.c:2878 do_iter_write+0x7a8/0xca0 fs/read_write.c:860 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:1915 [inline] loop_process_work+0x1478/0x2270 drivers/block/loop.c:1950 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x90b/0x1400 kernel/workqueue.c:2703 worker_thread+0xa5b/0xff0 kernel/workqueue.c:2784 kthread+0x2cf/0x360 kernel/kthread.c:388 ret_from_fork+0x44/0x70 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Allocated by task 5470: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x94/0xa0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc+0xb5/0x220 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] hfsplus_read_wrapper+0x541/0x1330 fs/hfsplus/wrapper.c:178 hfsplus_fill_super+0x38a/0x1c90 fs/hfsplus/super.c:413 mount_bdev+0x233/0x300 fs/super.c:1650 legacy_get_tree+0xeb/0x180 fs/fs_context.c:662 vfs_get_tree+0x88/0x280 fs/super.c:1771 do_new_mount+0x28b/0xae0 fs/namespace.c:3337 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3863 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b The buggy address belongs to the object at ffff88807240f000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes inside of allocated 512-byte region [ffff88807240f000, ffff88807240f200) The buggy address belongs to the physical page: page:ffffea0001c90300 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7240c head:ffffea0001c90300 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888012841c80 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 5403, tgid 5403 (syz-executor.0), ts 84955058329, free_ts 84807115933 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1d2/0x1f0 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0x3376/0x3500 mm/page_alloc.c:3312 __alloc_pages+0x251/0x660 mm/page_alloc.c:4568 alloc_pages_mpol+0x3da/0x640 mm/mempolicy.c:2133 alloc_slab_page+0x6a/0x150 mm/slub.c:1870 allocate_slab mm/slub.c:2017 [inline] new_slab+0x84/0x2d0 mm/slub.c:2070 ___slab_alloc+0xc75/0x1300 mm/slub.c:3223 __slab_alloc mm/slub.c:3322 [inline] __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] __kmem_cache_alloc_node+0x215/0x2f0 mm/slub.c:3517 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:721 [inline] kernfs_fop_open+0x3e3/0xcc0 fs/kernfs/file.c:621 do_dentry_open+0x8fd/0x1590 fs/open.c:948 do_open fs/namei.c:3622 [inline] path_openat+0x2841/0x3280 fs/namei.c:3779 do_filp_open+0x230/0x480 fs/namei.c:3809 do_sys_openat2+0x13a/0x1c0 fs/open.c:1440 do_sys_open fs/open.c:1455 [inline] __do_sys_openat fs/open.c:1471 [inline] __se_sys_openat fs/open.c:1466 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1466 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1137 [inline] free_unref_page_prepare+0x915/0xa30 mm/page_alloc.c:2347 free_unref_page+0x33/0x3e0 mm/page_alloc.c:2487 discard_slab mm/slub.c:2116 [inline] __unfreeze_partials+0x1dc/0x220 mm/slub.c:2655 put_cpu_partial+0x17b/0x250 mm/slub.c:2731 __slab_free+0x2b2/0x380 mm/slub.c:3679 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x75/0xd0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x147/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1f/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6c/0x3b0 mm/slab.h:763 slab_alloc_node mm/slub.c:3478 [inline] kmem_cache_alloc_node+0x1a5/0x380 mm/slub.c:3523 __alloc_skb+0x17d/0x410 net/core/skbuff.c:641 alloc_skb include/linux/skbuff.h:1286 [inline] alloc_skb_with_frags+0xbf/0x770 net/core/skbuff.c:6331 sock_alloc_send_pskb+0x915/0xa50 net/core/sock.c:2780 sock_alloc_send_skb include/net/sock.h:1884 [inline] mld_newpack+0x1c5/0xa90 net/ipv6/mcast.c:1746 add_grhead net/ipv6/mcast.c:1849 [inline] add_grec+0x148d/0x1990 net/ipv6/mcast.c:1987 mld_send_cr net/ipv6/mcast.c:2113 [inline] mld_ifc_work+0x6bb/0xb20 net/ipv6/mcast.c:2650 Memory state around the buggy address: ffff88807240f100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807240f180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88807240f200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88807240f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807240f300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================