==================================================================
BUG: KASAN: slab-out-of-bounds in copy_page_from_iter_atomic+0xb7f/0x1180 lib/iov_iter.c:821
Read of size 2048 at addr ffff88804ac39000 by task kworker/u4:11/5619

CPU: 1 PID: 5619 Comm: kworker/u4:11 Not tainted 6.2.0-rc3-next-20230112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: loop0 loop_workfn
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:306 [inline]
 print_report+0x15e/0x45d mm/kasan/report.c:417
 kasan_report+0xc0/0xf0 mm/kasan/report.c:517
 check_region_inline mm/kasan/generic.c:183 [inline]
 kasan_check_range+0x141/0x190 mm/kasan/generic.c:189
 memcpy+0x24/0x60 mm/kasan/shadow.c:65
 copy_page_from_iter_atomic+0xb7f/0x1180 lib/iov_iter.c:821
 generic_perform_write+0x2ca/0x570 mm/filemap.c:3780
 __generic_file_write_iter+0x2ae/0x500 mm/filemap.c:3900
 generic_file_write_iter+0xe3/0x350 mm/filemap.c:3932
 call_write_iter include/linux/fs.h:1852 [inline]
 do_iter_readv_writev+0x20b/0x3b0 fs/read_write.c:735
 do_iter_write+0x182/0x700 fs/read_write.c:861
 vfs_iter_write+0x74/0xa0 fs/read_write.c:902
 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:1873 [inline]
 loop_process_work+0xdac/0x20e0 drivers/block/loop.c:1908
 process_one_work+0x9bf/0x1750 kernel/workqueue.c:2293
 worker_thread+0x669/0x1090 kernel/workqueue.c:2440
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Allocated by task 5616:
 kasan_save_stack+0x22/0x40 mm/kasan/common.c:45
 kasan_set_track+0x25/0x30 mm/kasan/common.c:52
 ____kasan_kmalloc mm/kasan/common.c:371 [inline]
 ____kasan_kmalloc mm/kasan/common.c:330 [inline]
 __kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:380
 kasan_kmalloc include/linux/kasan.h:196 [inline]
 __do_kmalloc_node mm/slab_common.c:967 [inline]
 __kmalloc+0x5a/0xd0 mm/slab_common.c:980
 kmalloc include/linux/slab.h:584 [inline]
 hfsplus_read_wrapper+0x32d/0xfe0 fs/hfsplus/wrapper.c:178
 hfsplus_fill_super+0x31a/0x1a30 fs/hfsplus/super.c:413
 mount_bdev+0x351/0x410 fs/super.c:1359
 legacy_get_tree+0x109/0x220 fs/fs_context.c:610
 vfs_get_tree+0x8d/0x2f0 fs/super.c:1489
 do_new_mount fs/namespace.c:3145 [inline]
 path_mount+0x132a/0x1e20 fs/namespace.c:3475
 do_mount fs/namespace.c:3488 [inline]
 __do_sys_mount fs/namespace.c:3697 [inline]
 __se_sys_mount fs/namespace.c:3674 [inline]
 __x64_sys_mount+0x283/0x300 fs/namespace.c:3674
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

The buggy address belongs to the object at ffff88804ac39000
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 0 bytes inside of
 512-byte region [ffff88804ac39000, ffff88804ac39200)

The buggy address belongs to the physical page:
page:ffffea00012b0e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4ac38
head:ffffea00012b0e00 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 ffff888012441c80 ffffea00012b0d00 dead000000000002
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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5105, tgid 5105 (syz-executor.0), ts 124995858199, free_ts 14922136303
 prep_new_page mm/page_alloc.c:2549 [inline]
 get_page_from_freelist+0x11bb/0x2d50 mm/page_alloc.c:4324
 __alloc_pages+0x1cb/0x5c0 mm/page_alloc.c:5590
 alloc_pages+0x1aa/0x270 mm/mempolicy.c:2281
 alloc_slab_page mm/slub.c:1851 [inline]
 allocate_slab+0x25f/0x350 mm/slub.c:1998
 new_slab mm/slub.c:2051 [inline]
 ___slab_alloc+0xa91/0x1400 mm/slub.c:3193
 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3292
 __slab_alloc_node mm/slub.c:3345 [inline]
 slab_alloc_node mm/slub.c:3442 [inline]
 __kmem_cache_alloc_node+0x136/0x330 mm/slub.c:3491
 __do_kmalloc_node mm/slab_common.c:966 [inline]
 __kmalloc_node_track_caller+0x4b/0xc0 mm/slab_common.c:987
 kmalloc_reserve net/core/skbuff.c:490 [inline]
 __alloc_skb+0xe9/0x310 net/core/skbuff.c:563
 alloc_skb include/linux/skbuff.h:1270 [inline]
 alloc_uevent_skb+0x7b/0x210 lib/kobject_uevent.c:290
 uevent_net_broadcast_tagged lib/kobject_uevent.c:351 [inline]
 kobject_uevent_net_broadcast lib/kobject_uevent.c:412 [inline]
 kobject_uevent_env+0x10f3/0x1620 lib/kobject_uevent.c:593
 device_add+0xb76/0x1e90 drivers/base/core.c:3418
 netdev_register_kobject+0x185/0x400 net/core/net-sysfs.c:2015
 register_netdevice+0xd77/0x1640 net/core/dev.c:10045
 veth_newlink+0x4d7/0x9a0 drivers/net/veth.c:1796
 rtnl_newlink_create net/core/rtnetlink.c:3407 [inline]
 __rtnl_newlink+0x10c2/0x1840 net/core/rtnetlink.c:3624
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1451 [inline]
 free_pcp_prepare+0x4d0/0x910 mm/page_alloc.c:1501
 free_unref_page_prepare mm/page_alloc.c:3387 [inline]
 free_unref_page+0x1d/0x490 mm/page_alloc.c:3482
 free_contig_range+0xb5/0x180 mm/page_alloc.c:9527
 destroy_args+0xa8/0x64c mm/debug_vm_pgtable.c:1002
 debug_vm_pgtable+0x2b73/0x2c05 mm/debug_vm_pgtable.c:1382
 do_one_initcall+0x141/0x7d0 init/main.c:1306
 do_initcall_level init/main.c:1379 [inline]
 do_initcalls init/main.c:1395 [inline]
 do_basic_setup init/main.c:1414 [inline]
 kernel_init_freeable+0x6f9/0x782 init/main.c:1634
 kernel_init+0x1e/0x1d0 init/main.c:1522
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

Memory state around the buggy address:
 ffff88804ac39100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff88804ac39180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88804ac39200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                   ^
 ffff88804ac39280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88804ac39300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================