syz.1.138: attempt to access beyond end of device loop1: rw=524288, sector=8, nr_sectors = 16 limit=16 syz.1.138: attempt to access beyond end of device loop1: 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 ffff888054d25000 by task syz.1.138/5140 CPU: 1 PID: 5140 Comm: syz.1.138 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:0x7f2182d9cdd9 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:00007f2183c24028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f2183015fa0 RCX: 00007f2182d9cdd9 RDX: 0000000000080000 RSI: 0000200000000100 RDI: ffffffffffffff9c RBP: 00007f2182e32d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2183016038 R14: 00007f2183015fa0 R15: 00007ffc3122c208 Allocated by task 7: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc+0x123/0x2f0 mm/slub.c:3383 kmem_cache_zalloc include/linux/slab.h:689 [inline] node_alloc net/ipv6/ip6_fib.c:187 [inline] fib6_add_1+0x9ab/0x1430 net/ipv6/ip6_fib.c:-1 fib6_add+0x1d0/0x3d10 net/ipv6/ip6_fib.c:1405 __ip6_ins_rt net/ipv6/route.c:1346 [inline] ip6_ins_rt+0xd3/0x130 net/ipv6/route.c:1356 __ipv6_ifa_notify+0x4e7/0xe60 net/ipv6/addrconf.c:6214 ipv6_ifa_notify net/ipv6/addrconf.c:6253 [inline] addrconf_dad_completed+0x198/0xd90 net/ipv6/addrconf.c:4257 addrconf_dad_work+0xc5a/0x14f0 net/ipv6/addrconf.c:-1 process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff888054d25000 which belongs to the cache fib6_nodes of size 72 The buggy address is located 0 bytes inside of 72-byte region [ffff888054d25000, ffff888054d25048) The buggy address belongs to the physical page: page:ffffea0001534940 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x54d25 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff88802f224000 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 0x12a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY), pid 7, tgid 7 (kworker/0:0), ts 71467204724, free_ts 20022612123 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_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] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc+0x1b7/0x2f0 mm/slub.c:3383 kmem_cache_zalloc include/linux/slab.h:689 [inline] node_alloc net/ipv6/ip6_fib.c:187 [inline] fib6_add_1+0x9ab/0x1430 net/ipv6/ip6_fib.c:-1 fib6_add+0x1d0/0x3d10 net/ipv6/ip6_fib.c:1405 __ip6_ins_rt net/ipv6/route.c:1346 [inline] ip6_ins_rt+0xd3/0x130 net/ipv6/route.c:1356 __ipv6_ifa_notify+0x4e7/0xe60 net/ipv6/addrconf.c:6214 ipv6_ifa_notify net/ipv6/addrconf.c:6253 [inline] addrconf_dad_completed+0x198/0xd90 net/ipv6/addrconf.c:4257 addrconf_dad_work+0xc5a/0x14f0 net/ipv6/addrconf.c:-1 process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1486 [inline] free_pcp_prepare mm/page_alloc.c:1536 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3413 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3508 free_contig_range+0x9d/0x150 mm/page_alloc.c:9625 destroy_args+0xf0/0xa0a mm/debug_vm_pgtable.c:1031 debug_vm_pgtable+0x33c/0x38e mm/debug_vm_pgtable.c:1359 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 Memory state around the buggy address: ffff888054d24f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888054d24f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888054d25000: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ^ ffff888054d25080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ffff888054d25100: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ==================================================================