syz.2.623: attempt to access beyond end of device loop2: rw=524288, sector=8, nr_sectors = 16 limit=16 syz.2.623: attempt to access beyond end of device loop2: rw=524288, sector=16, nr_sectors = 40 limit=16 ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy_to_page include/linux/highmem.h:403 [inline] BUG: KASAN: slab-out-of-bounds in z_erofs_transform_plain+0x388/0x460 fs/erofs/decompressor.c:346 Read of size 4096 at addr ffff88802a044000 by task syz.2.623/6625 CPU: 0 PID: 6625 Comm: syz.2.623 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x235/0x290 mm/kasan/generic.c:189 memcpy+0x25/0x60 mm/kasan/shadow.c:65 memcpy_to_page include/linux/highmem.h:403 [inline] z_erofs_transform_plain+0x388/0x460 fs/erofs/decompressor.c:346 z_erofs_decompress_pcluster fs/erofs/zdata.c:1159 [inline] z_erofs_decompress_queue+0x170d/0x2540 fs/erofs/zdata.c:1240 z_erofs_runqueue+0x1a48/0x1be0 fs/erofs/zdata.c:1603 z_erofs_read_folio+0x367/0x630 fs/erofs/zdata.c:1693 filemap_read_folio+0x16b/0x770 mm/filemap.c:2490 filemap_update_page mm/filemap.c:2575 [inline] filemap_get_pages mm/filemap.c:2689 [inline] filemap_read+0x1850/0x3020 mm/filemap.c:2759 generic_file_read_iter+0x136/0x740 mm/filemap.c:2941 __kernel_read+0x2ec/0x6d0 fs/read_write.c:428 integrity_kernel_read+0x86/0xd0 security/integrity/iint.c:228 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline] ima_calc_file_hash+0x910/0x1900 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x503/0xb50 security/integrity/ima/ima_api.c:293 process_measurement+0x1183/0x1c30 security/integrity/ima/ima_main.c:351 ima_file_check+0xc8/0x110 security/integrity/ima/ima_main.c:534 do_open fs/namei.c:3636 [inline] path_openat+0x26e8/0x2ee0 fs/namei.c:3791 do_filp_open+0x1f1/0x430 fs/namei.c:3818 do_sys_openat2+0x150/0x4b0 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f77e639cdd9 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:00007f77e45f6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f77e6615fa0 RCX: 00007f77e639cdd9 RDX: 0000000000080000 RSI: 0000200000000100 RDI: ffffffffffffff9c RBP: 00007f77e6432d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f77e6616038 R14: 00007f77e6615fa0 R15: 00007ffe820f4a08 Allocated by task 1: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc_node+0xb0/0x240 mm/slab_common.c:943 kmalloc_node include/linux/slab.h:589 [inline] __vmalloc_area_node mm/vmalloc.c:3057 [inline] __vmalloc_node_range+0x584/0x13b0 mm/vmalloc.c:3243 __vmalloc_node mm/vmalloc.c:3308 [inline] vzalloc+0x75/0x80 mm/vmalloc.c:3381 tpg_alloc+0x244/0x840 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:155 vivid_create_instance drivers/media/test-drivers/vivid/vivid-core.c:1810 [inline] vivid_probe+0x1bf3/0x5f10 drivers/media/test-drivers/vivid/vivid-core.c:2041 platform_probe+0x137/0x1c0 drivers/base/platform.c:1400 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2aa/0xc70 drivers/base/dd.c:639 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:785 driver_probe_device+0x4f/0x420 drivers/base/dd.c:815 __driver_attach+0x44a/0x6e0 drivers/base/dd.c:1201 bus_for_each_dev+0x182/0x1f0 drivers/base/bus.c:303 bus_add_driver+0x30a/0x5a0 drivers/base/bus.c:620 driver_register+0x32d/0x430 drivers/base/driver.c:246 vivid_init+0x39/0x67 drivers/media/test-drivers/vivid/vivid-core.c:2169 do_one_initcall+0x26a/0x840 init/main.c:1310 do_initcall_level+0x137/0x1e4 init/main.c:1383 do_initcalls+0x4b/0x8a init/main.c:1399 kernel_init_freeable+0x415/0x5be init/main.c:1638 kernel_init+0x19/0x1b0 init/main.c:1526 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff88802a044000 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 0 bytes inside of 256-byte region [ffff88802a044000, ffff88802a044100) The buggy address belongs to the physical page: page:ffffea0000a81100 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2a044 head:ffffea0000a81100 order:1 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888017441b40 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 18319822156, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2559 prep_new_page mm/page_alloc.c:2566 [inline] get_page_from_freelist+0x1a1e/0x1ab0 mm/page_alloc.c:4357 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5657 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2115 alloc_slab_page+0x5d/0x160 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2c0 mm/slub.c:1997 ___slab_alloc+0xbc6/0x1240 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] __kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3398 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc_node+0xa0/0x240 mm/slab_common.c:943 kmalloc_node include/linux/slab.h:589 [inline] __vmalloc_area_node mm/vmalloc.c:3057 [inline] __vmalloc_node_range+0x584/0x13b0 mm/vmalloc.c:3243 __vmalloc_node mm/vmalloc.c:3308 [inline] vzalloc+0x75/0x80 mm/vmalloc.c:3381 tpg_alloc+0x244/0x840 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:155 vivid_create_instance drivers/media/test-drivers/vivid/vivid-core.c:1810 [inline] vivid_probe+0x1bf3/0x5f10 drivers/media/test-drivers/vivid/vivid-core.c:2041 platform_probe+0x137/0x1c0 drivers/base/platform.c:1400 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2aa/0xc70 drivers/base/dd.c:639 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:785 page_owner free stack trace missing Memory state around the buggy address: ffff88802a044000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802a044080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88802a044100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802a044180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802a044200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================