loop3: detected capacity change from 0 to 16 erofs: (device loop3): mounted with root inode @ nid 36. syz.3.55: attempt to access beyond end of device loop3: rw=524288, sector=8, nr_sectors = 16 limit=16 syz.3.55: attempt to access beyond end of device loop3: rw=524288, sector=16, nr_sectors = 40 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+0x38c/0x460 fs/erofs/decompressor.c:346 Read of size 4096 at addr ffff88802660b000 by task syz.3.55/6044 CPU: 0 PID: 6044 Comm: syz.3.55 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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+0x38c/0x460 fs/erofs/decompressor.c:346 z_erofs_decompress_pcluster fs/erofs/zdata.c:1296 [inline] z_erofs_decompress_queue+0x1780/0x26f0 fs/erofs/zdata.c:1377 z_erofs_runqueue+0x1a4e/0x1bf0 fs/erofs/zdata.c:1778 z_erofs_read_folio+0x323/0x5c0 fs/erofs/zdata.c:1863 filemap_read_folio+0x172/0x760 mm/filemap.c:2420 filemap_update_page mm/filemap.c:2504 [inline] filemap_get_pages+0x13c7/0x1e90 mm/filemap.c:2618 filemap_read+0x402/0xf00 mm/filemap.c:2690 __kernel_read+0x2f3/0x710 fs/read_write.c:428 integrity_kernel_read+0x8a/0xd0 security/integrity/iint.c:221 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+0x91d/0x1910 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x4d4/0xa20 security/integrity/ima/ima_api.c:290 process_measurement+0x128e/0x1d70 security/integrity/ima/ima_main.c:370 ima_file_check+0xcc/0x110 security/integrity/ima/ima_main.c:568 do_open fs/namei.c:3642 [inline] path_openat+0x28b7/0x3230 fs/namei.c:3797 do_filp_open+0x1f5/0x430 fs/namei.c:3824 do_sys_openat2+0x134/0x1d0 fs/open.c:1421 do_sys_open fs/open.c:1436 [inline] __do_sys_openat fs/open.c:1452 [inline] __se_sys_openat fs/open.c:1447 [inline] __x64_sys_openat+0x139/0x160 fs/open.c:1447 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f596739cdd9 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:00007f59681ae028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f5967615fa0 RCX: 00007f596739cdd9 RDX: 0000000000080000 RSI: 0000200000000100 RDI: ffffffffffffff9c RBP: 00007f5967432d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5967616038 R14: 00007f5967615fa0 R15: 00007fff19f0fae8 Allocated by task 1: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6e/0x4b0 mm/slab.h:767 slab_alloc_node mm/slub.c:3495 [inline] slab_alloc mm/slub.c:3503 [inline] __kmem_cache_alloc_lru mm/slub.c:3510 [inline] kmem_cache_alloc+0x11a/0x2d0 mm/slub.c:3519 kmem_cache_zalloc include/linux/slab.h:711 [inline] __kernfs_new_node+0xe5/0x810 fs/kernfs/dir.c:624 kernfs_new_node+0x14c/0x260 fs/kernfs/dir.c:700 kernfs_create_dir_ns+0x44/0x120 fs/kernfs/dir.c:1061 internal_create_group+0x219/0xd10 fs/sysfs/group.c:138 dpm_sysfs_add+0x6a/0x270 drivers/base/power/sysfs.c:702 device_add+0x56a/0xc20 drivers/base/core.c:3643 usb_hub_create_port_device+0x3ee/0xbd0 drivers/usb/core/port.c:751 hub_configure drivers/usb/core/hub.c:1708 [inline] hub_probe+0x26d3/0x37e0 drivers/usb/core/hub.c:1975 usb_probe_interface+0x5c9/0xb20 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb20 drivers/base/dd.c:658 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:800 driver_probe_device+0x4f/0x420 drivers/base/dd.c:830 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:958 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c2/0x420 drivers/base/dd.c:1030 bus_probe_device+0x180/0x260 drivers/base/bus.c:534 device_add+0x85b/0xc20 drivers/base/core.c:3683 usb_set_configuration+0x1a79/0x20c0 drivers/usb/core/message.c:2265 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x13d/0x270 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb20 drivers/base/dd.c:658 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:800 driver_probe_device+0x4f/0x420 drivers/base/dd.c:830 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:958 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c2/0x420 drivers/base/dd.c:1030 bus_probe_device+0x180/0x260 drivers/base/bus.c:534 device_add+0x85b/0xc20 drivers/base/core.c:3683 usb_new_device+0xa3c/0x1660 drivers/usb/core/hub.c:2660 register_root_hub+0x275/0x580 drivers/usb/core/hcd.c:996 usb_add_hcd+0xb73/0x1000 drivers/usb/core/hcd.c:2969 vhci_hcd_probe+0x1c1/0x370 drivers/usb/usbip/vhci_hcd.c:1401 platform_probe+0x13b/0x1c0 drivers/base/platform.c:1404 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb20 drivers/base/dd.c:658 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:800 driver_probe_device+0x4f/0x420 drivers/base/dd.c:830 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:958 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c2/0x420 drivers/base/dd.c:1030 bus_probe_device+0x180/0x260 drivers/base/bus.c:534 device_add+0x85b/0xc20 drivers/base/core.c:3683 platform_device_add+0x4bd/0x820 drivers/base/platform.c:717 vhci_hcd_init+0x3cb/0x500 drivers/usb/usbip/vhci_hcd.c:1569 do_one_initcall+0x242/0x790 init/main.c:1250 do_initcall_level+0x137/0x1f0 init/main.c:1312 do_initcalls+0x69/0xd0 init/main.c:1328 kernel_init_freeable+0x3ed/0x580 init/main.c:1565 kernel_init+0x1d/0x1c0 init/main.c:1455 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 The buggy address belongs to the object at ffff88802660b000 which belongs to the cache kernfs_node_cache of size 184 The buggy address is located 0 bytes inside of allocated 184-byte region [ffff88802660b000, ffff88802660b0b8) The buggy address belongs to the physical page: page:ffffea00009982c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2660b flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000800 ffff888019e4ddc0 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 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 14103424849, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581 prep_new_page mm/page_alloc.c:1588 [inline] get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4500 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2118 alloc_slab_page+0x5d/0x160 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2d0 mm/slub.c:2081 ___slab_alloc+0xc5d/0x12f0 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] slab_alloc mm/slub.c:3503 [inline] __kmem_cache_alloc_lru mm/slub.c:3510 [inline] kmem_cache_alloc+0x1b3/0x2d0 mm/slub.c:3519 kmem_cache_zalloc include/linux/slab.h:711 [inline] __kernfs_new_node+0xe5/0x810 fs/kernfs/dir.c:624 kernfs_new_node+0x14c/0x260 fs/kernfs/dir.c:700 kernfs_create_dir_ns+0x44/0x120 fs/kernfs/dir.c:1061 internal_create_group+0x219/0xd10 fs/sysfs/group.c:138 dpm_sysfs_add+0x6a/0x270 drivers/base/power/sysfs.c:702 device_add+0x56a/0xc20 drivers/base/core.c:3643 usb_hub_create_port_device+0x3ee/0xbd0 drivers/usb/core/port.c:751 hub_configure drivers/usb/core/hub.c:1708 [inline] hub_probe+0x26d3/0x37e0 drivers/usb/core/hub.c:1975 page_owner free stack trace missing Memory state around the buggy address: ffff88802660af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802660b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88802660b080: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 ^ ffff88802660b100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802660b180: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 ==================================================================