loop3: detected capacity change from 0 to 16 erofs: (device loop3): mounted with root inode @ nid 36. ================================================================== 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+0x3a4/0x490 fs/erofs/decompressor.c:346 Read of size 4096 at addr ffff0000d805a000 by task syz.3.589/6944 CPU: 0 PID: 6944 Comm: syz.3.589 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Call trace: dump_backtrace+0x1c0/0x1ec arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0xfc mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x258/0x290 mm/kasan/generic.c:189 memcpy+0x48/0x90 mm/kasan/shadow.c:65 memcpy_to_page include/linux/highmem.h:403 [inline] z_erofs_transform_plain+0x3a4/0x490 fs/erofs/decompressor.c:346 z_erofs_decompress+0x9c/0xd4 fs/erofs/decompressor.c:434 z_erofs_decompress_pcluster fs/erofs/zdata.c:1159 [inline] z_erofs_decompress_queue+0x100c/0x1b40 fs/erofs/zdata.c:1240 z_erofs_runqueue+0x14d4/0x1694 fs/erofs/zdata.c:1597 z_erofs_read_folio+0x2d8/0x5c8 fs/erofs/zdata.c:1687 filemap_read_folio+0x134/0x384 mm/filemap.c:2490 filemap_update_page mm/filemap.c:2575 [inline] filemap_get_pages mm/filemap.c:2689 [inline] filemap_read+0x12cc/0x2104 mm/filemap.c:2759 generic_file_read_iter+0xf8/0x5c4 mm/filemap.c:2941 __kernel_read+0x268/0x600 fs/read_write.c:428 kernel_read+0xd8/0x1d4 fs/read_write.c:446 kernel_read_file+0x448/0x620 fs/kernel_read_file.c:93 kernel_read_file_from_fd+0xc0/0x130 fs/kernel_read_file.c:184 __do_sys_finit_module kernel/module/main.c:2965 [inline] __se_sys_finit_module kernel/module/main.c:2947 [inline] __arm64_sys_finit_module+0x1bc/0x230 kernel/module/main.c:2947 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b4 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x130 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Allocated by task 6863: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:53 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0xa0/0xb8 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] kmalloc_trace+0x7c/0x94 mm/slab_common.c:1031 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] sctp_add_bind_addr+0x9c/0x2e0 net/sctp/bind_addr.c:150 sctp_copy_local_addr_list+0x2c0/0x460 net/sctp/protocol.c:165 sctp_copy_one_addr+0xb0/0x33c net/sctp/bind_addr.c:466 sctp_bind_addr_copy+0xa8/0x388 net/sctp/bind_addr.c:56 sctp_assoc_set_bind_addr_from_ep+0x124/0x178 net/sctp/associola.c:1591 sctp_connect_new_asoc+0x2d0/0x630 net/sctp/socket.c:1094 sctp_sendmsg_new_asoc net/sctp/socket.c:1690 [inline] sctp_sendmsg+0x10d4/0x20b4 net/sctp/socket.c:2001 inet_sendmsg+0x154/0x284 net/ipv4/af_inet.c:841 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] ____sys_sendmsg+0x5c8/0x938 net/socket.c:2518 ___sys_sendmsg net/socket.c:2572 [inline] __sys_sendmsg+0x288/0x374 net/socket.c:2601 __do_sys_sendmsg net/socket.c:2610 [inline] __se_sys_sendmsg net/socket.c:2608 [inline] __arm64_sys_sendmsg+0x80/0x94 net/socket.c:2608 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b4 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x130 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:46 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 kvfree_call_rcu+0xb4/0x6e8 kernel/rcu/tree.c:3405 sctp_bind_addr_clean net/sctp/bind_addr.c:131 [inline] sctp_bind_addr_free+0x114/0x160 net/sctp/bind_addr.c:140 sctp_association_free+0x230/0x6e0 net/sctp/associola.c:359 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:944 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1331 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline] sctp_do_sm+0x2cb8/0x481c net/sctp/sm_sideeffect.c:1170 sctp_primitive_SHUTDOWN+0x98/0xc8 net/sctp/primitive.c:89 sctp_close+0x344/0x790 net/sctp/socket.c:1527 inet_release+0x154/0x1cc net/ipv4/af_inet.c:430 inet6_release+0x5c/0x78 net/ipv6/af_inet6.c:491 __sock_release net/socket.c:654 [inline] sock_close+0xb4/0x1f8 net/socket.c:1399 __fput+0x1bc/0x7b8 fs/file_table.c:320 ____fput+0x20/0x30 fs/file_table.c:348 task_work_run+0x1ec/0x278 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x1fa0/0x2aa4 arch/arm64/kernel/signal.c:1137 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x98/0x128 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Second to last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:46 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 kvfree_call_rcu+0xb4/0x6e8 kernel/rcu/tree.c:3405 hash_net4_gc_do+0x7a8/0x8b0 net/netfilter/ipset/ip_set_hash_gen.h:-1 hash_net4_gc+0x1d4/0x544 net/netfilter/ipset/ip_set_hash_gen.h:570 process_one_work+0x7f8/0x13a4 kernel/workqueue.c:2292 worker_thread+0x8c4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 The buggy address belongs to the object at ffff0000d805a000 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 0 bytes inside of 128-byte region [ffff0000d805a000, ffff0000d805a080) The buggy address belongs to the physical page: page:0000000092fc28a0 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff0000d805a400 pfn:0x11805a flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000200 fffffc0003e12508 fffffc0003328748 ffff0000c0002300 raw: ffff0000d805a400 000000000010000f 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d8059f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000d8059f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000d805a000: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff0000d805a080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d805a100: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ==================================================================