syz.1.192: attempt to access beyond end of device loop1: rw=524288, sector=34359738360, nr_sectors = 8 limit=16 syz.1.192: attempt to access beyond end of device loop1: rw=524288, sector=8, nr_sectors = 16 limit=16 ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy_to_page include/linux/highmem.h:427 [inline] BUG: KASAN: slab-out-of-bounds in z_erofs_transform_plain+0x3ab/0x4a0 fs/erofs/decompressor.c:310 Read of size 4096 at addr ffff88801f34c000 by task syz.1.192/6528 CPU: 1 PID: 6528 Comm: syz.1.192 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x241/0x290 mm/kasan/generic.c:187 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105 memcpy_to_page include/linux/highmem.h:427 [inline] z_erofs_transform_plain+0x3ab/0x4a0 fs/erofs/decompressor.c:310 z_erofs_decompress_pcluster fs/erofs/zdata.c:1299 [inline] z_erofs_decompress_queue+0x1705/0x2670 fs/erofs/zdata.c:1380 z_erofs_runqueue+0x1993/0x1b20 fs/erofs/zdata.c:1781 z_erofs_read_folio+0x321/0x5c0 fs/erofs/zdata.c:1866 filemap_read_folio+0x16b/0x790 mm/filemap.c:2420 filemap_update_page mm/filemap.c:2504 [inline] filemap_get_pages+0x13ac/0x1f10 mm/filemap.c:2618 filemap_read+0x409/0xf20 mm/filemap.c:2690 call_read_iter include/linux/fs.h:2013 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x486/0x990 fs/read_write.c:470 ksys_read+0x151/0x260 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fe1f3f9f559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe1f4df5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007fe1f4225fa0 RCX: 00007fe1f3f9f559 RDX: 0000000000002020 RSI: 00002000000020c0 RDI: 0000000000000004 RBP: 00007fe1f4036b50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe1f4226038 R14: 00007fe1f4225fa0 R15: 00007ffe03ac03c8 Allocated by task 6245: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384 kmalloc include/linux/slab.h:600 [inline] __netdev_adjacent_dev_insert+0x170/0x960 net/core/dev.c:7712 __netdev_adjacent_dev_link_lists net/core/dev.c:7804 [inline] __netdev_adjacent_dev_link_neighbour net/core/dev.c:7833 [inline] __netdev_upper_dev_link+0x3a0/0x5a0 net/core/dev.c:7893 netdev_upper_dev_link+0xb1/0x100 net/core/dev.c:7939 ipvlan_link_new+0x5fe/0xae0 drivers/net/ipvlan/ipvlan_main.c:622 rtnl_newlink_create net/core/rtnetlink.c:3534 [inline] __rtnl_newlink net/core/rtnetlink.c:3754 [inline] rtnl_newlink+0x15a0/0x2170 net/core/rtnetlink.c:3767 rtnetlink_rcv_msg+0x843/0xf90 net/core/rtnetlink.c:6489 netlink_rcv_skb+0x235/0x4c0 net/netlink/af_netlink.c:2554 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x856/0x9e0 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8d0/0xbf0 net/netlink/af_netlink.c:1903 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] __sys_sendto+0x4a9/0x6b0 net/socket.c:2201 __do_sys_sendto net/socket.c:2213 [inline] __se_sys_sendto net/socket.c:2209 [inline] __x64_sys_sendto+0xde/0xf0 net/socket.c:2209 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88801f34c000 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes inside of allocated 64-byte region [ffff88801f34c000, ffff88801f34c040) The buggy address belongs to the physical page: page:ffffea00007cd300 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1f34c flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000800 ffff888018c41640 ffffea0000882800 dead000000000004 raw: 0000000000000000 0000000000200020 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 12, tgid 12 (kworker/u4:1), ts 8576535753, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1582 prep_new_page mm/page_alloc.c:1589 [inline] get_page_from_freelist+0x2181/0x22a0 mm/page_alloc.c:3221 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4501 alloc_slab_page+0x5d/0x180 mm/slub.c:1903 allocate_slab mm/slub.c:2050 [inline] new_slab+0x87/0x2d0 mm/slub.c:2103 ___slab_alloc+0xc5c/0x12f0 mm/slub.c:3275 __slab_alloc mm/slub.c:3361 [inline] __slab_alloc_node mm/slub.c:3414 [inline] slab_alloc_node mm/slub.c:3508 [inline] __kmem_cache_alloc_node+0x122/0x260 mm/slub.c:3557 kmalloc_node_trace+0x26/0xe0 mm/slab_common.c:1111 kmalloc_node include/linux/slab.h:616 [inline] kzalloc_node include/linux/slab.h:732 [inline] __get_vm_area_node+0x125/0x370 mm/vmalloc.c:2644 __vmalloc_node_range+0x36f/0x1320 mm/vmalloc.c:3330 alloc_thread_stack_node kernel/fork.c:311 [inline] dup_task_struct+0x3c8/0x800 kernel/fork.c:1126 copy_process+0x5a6/0x3da0 kernel/fork.c:2342 kernel_clone+0x24b/0x8a0 kernel/fork.c:2922 user_mode_thread+0x111/0x180 kernel/fork.c:3000 call_usermodehelper_exec_work+0x5c/0x220 kernel/umh.c:172 process_one_work kernel/workqueue.c:2657 [inline] process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734 page_owner free stack trace missing Memory state around the buggy address: ffff88801f34bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801f34bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801f34c000: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88801f34c080: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff88801f34c100: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================