================================================================== BUG: KASAN: use-after-free in scr_memcpyw include/linux/vt_buffer.h:38 [inline] BUG: KASAN: use-after-free in fbcon_prepare_logo+0x94e/0xc60 drivers/video/fbdev/core/fbcon.c:686 Read of size 26 at addr ffff88806b16a7e8 by task syz.3.2604/17340 CPU: 0 UID: 0 PID: 17340 Comm: syz.3.2604 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1d0 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:186 [inline] kasan_check_range+0x10f/0x1e0 mm/kasan/generic.c:200 __asan_memcpy+0x23/0x60 mm/kasan/shadow.c:105 scr_memcpyw include/linux/vt_buffer.h:38 [inline] fbcon_prepare_logo+0x94e/0xc60 drivers/video/fbdev/core/fbcon.c:686 fbcon_init+0x1065/0x1830 drivers/video/fbdev/core/fbcon.c:1228 visual_init+0x320/0x620 drivers/tty/vt/vt.c:1048 do_bind_con_driver.isra.0+0x636/0x9c0 drivers/tty/vt/vt.c:4056 vt_bind drivers/tty/vt/vt.c:4212 [inline] store_bind+0x609/0x730 drivers/tty/vt/vt.c:4284 dev_attr_store+0x58/0x80 drivers/base/core.c:2437 sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:142 kernfs_fop_write_iter+0x3e0/0x5f0 fs/kernfs/file.c:352 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:688 ksys_write+0x12a/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd85a99cdd9 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:00007fd858bcd028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd85ac16090 RCX: 00007fd85a99cdd9 RDX: 000000000008083a RSI: 00002000000000c0 RDI: 0000000000000007 RBP: 00007fd85aa32d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd85ac16128 R14: 00007fd85ac16090 R15: 00007ffe16a7c238 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806b16a280 pfn:0x6b16a flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f0(buddy) raw: 00fff00000000000 ffffea0000abe408 ffffea0001a33b88 0000000000000000 raw: ffff88806b16a280 0000000000000001 00000000f0000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Unmovable, gfp_mask 0x10cc0(GFP_KERNEL|__GFP_NORETRY), pid 15387, tgid 15386 (syz.3.2141), ts 811491348568, free_ts 812818959948 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5226 alloc_pages_mpol+0x1fb/0x540 mm/mempolicy.c:2490 alloc_pages_noprof+0x1a/0x160 mm/mempolicy.c:2581 kimage_alloc_pages+0x72/0x380 kernel/kexec_core.c:284 kimage_alloc_normal_control_pages kernel/kexec_core.c:358 [inline] kimage_alloc_control_pages+0x157/0xa20 kernel/kexec_core.c:471 kimage_alloc_init kernel/kexec.c:67 [inline] do_kexec_load+0x275/0x810 kernel/kexec.c:130 __do_sys_kexec_load kernel/kexec.c:261 [inline] __se_sys_kexec_load kernel/kexec.c:242 [inline] __x64_sys_kexec_load+0x1bf/0x230 kernel/kexec.c:242 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15387 tgid 15386 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x747/0x1040 mm/page_alloc.c:2943 kimage_free_page_list+0x130/0x240 kernel/kexec_core.c:325 kimage_alloc_normal_control_pages kernel/kexec_core.c:390 [inline] kimage_alloc_control_pages+0x3f2/0xa20 kernel/kexec_core.c:471 kimage_alloc_init kernel/kexec.c:67 [inline] do_kexec_load+0x275/0x810 kernel/kexec.c:130 __do_sys_kexec_load kernel/kexec.c:261 [inline] __se_sys_kexec_load kernel/kexec.c:242 [inline] __x64_sys_kexec_load+0x1bf/0x230 kernel/kexec.c:242 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88806b16a680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806b16a700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88806b16a780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88806b16a800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806b16a880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================