syzbot


KASAN: unknown-crash Read in copy_mc_to_kernel

Status: upstream: reported on 2025/10/17 13:13
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+d155b4893773c196cdd9@syzkaller.appspotmail.com
First crash: 101d, last: 18d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] KASAN: unknown-crash Read in copy_mc_to_kernel 0 (1) 2025/10/17 13:13

Sample crash report:
==================================================================
BUG: KASAN: unknown-crash in instrument_memcpy_before include/linux/instrumented.h:163 [inline]
BUG: KASAN: unknown-crash in copy_mc_to_kernel+0x35/0xb0 arch/x86/lib/copy_mc.c:74
Read of size 4096 at addr ffff8880ae8f8000 by task syz.8.5077/27833

CPU: 0 UID: 0 PID: 27833 Comm: syz.8.5077 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description mm/kasan/report.c:378 [inline]
 print_report+0xca/0x240 mm/kasan/report.c:482
 kasan_report+0x118/0x150 mm/kasan/report.c:595
 check_region_inline mm/kasan/generic.c:-1 [inline]
 kasan_check_range+0x2b0/0x2c0 mm/kasan/generic.c:200
 instrument_memcpy_before include/linux/instrumented.h:163 [inline]
 copy_mc_to_kernel+0x35/0xb0 arch/x86/lib/copy_mc.c:74
 dump_page_copy fs/coredump.c:1321 [inline]
 dump_user_range+0x2e4/0xc90 fs/coredump.c:1372
 elf_core_dump+0x3369/0x3960 fs/binfmt_elf.c:2111
 coredump_write+0x1121/0x18b0 fs/coredump.c:1049
 do_coredump fs/coredump.c:1126 [inline]
 vfs_coredump+0x3321/0x3e60 fs/coredump.c:1200
 get_signal+0x1108/0x1340 kernel/signal.c:3019
 arch_do_signal_or_restart+0x9a/0x7a0 arch/x86/kernel/signal.c:337
 __exit_to_user_mode_loop kernel/entry/common.c:41 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:75 [inline]
 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline]
 irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:270 [inline]
 irqentry_exit_to_user_mode include/linux/irq-entry-common.h:339 [inline]
 irqentry_exit+0x178/0x670 kernel/entry/common.c:196
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618
RIP: 0033:0x7fa98cb8f751
Code: 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f
RSP: 002b:fffffffffffffe70 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007fa98cde6090 RCX: 00007fa98cb8f749
RDX: 0000000000000000 RSI: fffffffffffffe70 RDI: 0000000000008000
RBP: 00007fa98cc13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: 00007fa98cde6128 R14: 00007fa98cde6090 R15: 00007fff5e2a2428
 </TASK>

The buggy address belongs to the physical page:
page: refcount:6 mapcount:4 mapping:0000000000000000 index:0x0 pfn:0xae8f8
flags: 0xfff18000000214(referenced|dirty|workingset|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff18000000214 dead000000000100 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000000000 0000000600000003 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 0x1029c2(GFP_NOWAIT|__GFP_HIGHMEM|__GFP_IO|__GFP_FS|__GFP_ZERO|__GFP_HARDWALL), pid 20842, tgid 20842 (syz-executor), ts 1696825697466, free_ts 1696188782276
 set_page_owner include/linux/page_owner.h:32 [inline]
 post_alloc_hook+0x234/0x290 mm/page_alloc.c:1857
 prep_new_page mm/page_alloc.c:1865 [inline]
 get_page_from_freelist+0x24e0/0x2580 mm/page_alloc.c:3915
 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5210
 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2486
 alloc_frozen_pages_noprof mm/mempolicy.c:2557 [inline]
 alloc_pages_noprof+0xa9/0x190 mm/mempolicy.c:2577
 vm_area_alloc_pages mm/vmalloc.c:3649 [inline]
 __vmalloc_area_node mm/vmalloc.c:3863 [inline]
 __vmalloc_node_range_noprof+0x795/0x16a0 mm/vmalloc.c:4051
 vmalloc_user_noprof+0xad/0xf0 mm/vmalloc.c:4205
 kcov_ioctl+0x55/0x640 kernel/kcov.c:716
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 20430 tgid 20430 stack trace:
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1406 [inline]
 __free_frozen_pages+0xbc8/0xd30 mm/page_alloc.c:2943
 vfree+0x25a/0x400 mm/vmalloc.c:3466
 kcov_put kernel/kcov.c:439 [inline]
 kcov_close+0x28/0x50 kernel/kcov.c:535
 __fput+0x44c/0xa70 fs/file_table.c:468
 task_work_run+0x1d4/0x260 kernel/task_work.c:233
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0x694/0x22f0 kernel/exit.c:971
 do_group_exit+0x21c/0x2d0 kernel/exit.c:1112
 get_signal+0x1285/0x1340 kernel/signal.c:3034
 arch_do_signal_or_restart+0x9a/0x7a0 arch/x86/kernel/signal.c:337
 __exit_to_user_mode_loop kernel/entry/common.c:41 [inline]
 exit_to_user_mode_loop+0x87/0x4e0 kernel/entry/common.c:75
 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline]
 syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline]
 syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline]
 do_syscall_64+0x2c1/0xf80 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff8880ae8f7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8880ae8f7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8880ae8f8000: 00 77 0c 64 80 88 ff ff 00 00 00 00 00 00 00 00
                      ^
 ffff8880ae8f8080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8880ae8f8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/01/04 21:46 upstream 54e82e93ca93 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: unknown-crash Read in copy_mc_to_kernel
2025/10/13 12:54 upstream 3a8660878839 ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: unknown-crash Read in copy_mc_to_kernel
* Struck through repros no longer work on HEAD.