Console: switching to colour VGA+ 80x25 ================================================================== BUG: KASAN: use-after-free in scr_memcpyw include/linux/vt_buffer.h:38 [inline] BUG: KASAN: use-after-free in fbcon_prepare_logo+0xa03/0xc70 drivers/video/fbdev/core/fbcon.c:623 Read of size 256 at addr ffff88806d39cc60 by task syz.5.1934/16136 CPU: 0 UID: 0 PID: 16136 Comm: syz.5.1934 Tainted: G U syzkaller #0 PREEMPT(full) Tainted: [U]=USER Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:194 [inline] kasan_check_range+0x100/0x1b0 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+0xa03/0xc70 drivers/video/fbdev/core/fbcon.c:623 fbcon_init+0xd77/0x1900 drivers/video/fbdev/core/fbcon.c:1156 visual_init+0x320/0x620 drivers/tty/vt/vt.c:1020 do_bind_con_driver.isra.0+0x57a/0xbf0 drivers/tty/vt/vt.c:3960 vt_bind drivers/tty/vt/vt.c:4116 [inline] store_bind+0x61d/0x760 drivers/tty/vt/vt.c:4188 dev_attr_store+0x58/0x80 drivers/base/core.c:2437 sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:142 kernfs_fop_write_iter+0x3af/0x570 fs/kernfs/file.c:352 iter_file_splice_write+0xa24/0x12e0 fs/splice.c:738 do_splice_from fs/splice.c:938 [inline] direct_splice_actor+0x192/0x6c0 fs/splice.c:1161 splice_direct_to_actor+0x345/0xa30 fs/splice.c:1105 do_splice_direct_actor fs/splice.c:1204 [inline] do_splice_direct+0x174/0x240 fs/splice.c:1230 do_sendfile+0xb06/0xe50 fs/read_write.c:1370 __do_sys_sendfile64 fs/read_write.c:1431 [inline] __se_sys_sendfile64 fs/read_write.c:1417 [inline] __x64_sys_sendfile64+0x1d8/0x220 fs/read_write.c:1417 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa1c758eec9 Code: ff ff c3 66 2e 0f 1f 84 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 RSP: 002b:00007fa1c83b8038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fa1c77e5fa0 RCX: 00007fa1c758eec9 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 0000000000000003 RBP: 00007fa1c7611f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa1c77e6038 R14: 00007fa1c77e5fa0 R15: 00007ffe8ae4f648 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x6d39c flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f0(buddy) raw: 00fff00000000000 ffffea0001b4e648 ffffea0001e6ad88 0000000000000000 raw: 0000000000000001 0000000000000000 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 0x140dc0(GFP_USER|__GFP_ZERO|__GFP_COMP), pid 16019, tgid 16018 (syz.7.1919), ts 671011606704, free_ts 671779496762 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1850 prep_new_page mm/page_alloc.c:1858 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3884 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5183 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_pages_noprof mm/mempolicy.c:2507 [inline] folio_alloc_noprof+0x20/0x2d0 mm/mempolicy.c:2517 filemap_alloc_folio_noprof+0x3a1/0x470 mm/filemap.c:1020 __filemap_get_folio+0x5e1/0xc30 mm/filemap.c:2012 aio_setup_ring fs/aio.c:524 [inline] ioctx_alloc+0x761/0x2120 fs/aio.c:792 __do_sys_io_setup fs/aio.c:1399 [inline] __se_sys_io_setup fs/aio.c:1382 [inline] __x64_sys_io_setup+0xc9/0x210 fs/aio.c:1382 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 11649 tgid 11649 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2906 __folio_put+0x329/0x450 mm/swap.c:112 folio_put include/linux/mm.h:1425 [inline] aio_free_ring+0x2dd/0x4f0 fs/aio.c:345 free_ioctx+0x21/0xa0 fs/aio.c:622 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3427 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x675/0x7d0 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff88806d39cb00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806d39cb80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88806d39cc00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88806d39cc80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806d39cd00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================