================================================================== BUG: KASAN: slab-out-of-bounds in scr_memcpyw include/linux/vt_buffer.h:38 [inline] BUG: KASAN: slab-out-of-bounds in fbcon_prepare_logo+0xa03/0xc70 drivers/video/fbdev/core/fbcon.c:630 Read of size 126 at addr ffff88806bf073ae by task syz.5.4781/30995 CPU: 0 UID: 0 PID: 30995 Comm: syz.5.4781 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/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:183 [inline] kasan_check_range+0x100/0x1b0 mm/kasan/generic.c:189 __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:630 fbcon_init+0xd77/0x1900 drivers/video/fbdev/core/fbcon.c:1163 visual_init+0x320/0x620 drivers/tty/vt/vt.c:1019 do_bind_con_driver.isra.0+0x57a/0xbf0 drivers/tty/vt/vt.c:3915 vt_bind drivers/tty/vt/vt.c:4071 [inline] store_bind+0x61d/0x760 drivers/tty/vt/vt.c:4143 dev_attr_store+0x55/0x80 drivers/base/core.c:2437 sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:145 kernfs_fop_write_iter+0x354/0x510 fs/kernfs/file.c:334 iter_file_splice_write+0xa24/0x12e0 fs/splice.c:738 do_splice_from fs/splice.c:938 [inline] direct_splice_actor+0x18f/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/0x490 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f952718ebe9 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:00007f952805b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f95273b5fa0 RCX: 00007f952718ebe9 RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000003 RBP: 00007f9527211e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f95273b6038 R14: 00007f95273b5fa0 R15: 00007ffe721a26a8 Allocated by task 18534: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:388 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:405 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4365 [inline] __kmalloc_node_noprof+0x21e/0x500 mm/slub.c:4371 kmalloc_node_noprof include/linux/slab.h:932 [inline] qdisc_alloc+0xbb/0xc50 net/sched/sch_generic.c:950 qdisc_create_dflt+0x94/0x490 net/sched/sch_generic.c:1012 attach_one_default_qdisc net/sched/sch_generic.c:1178 [inline] netdev_for_each_tx_queue include/linux/netdevice.h:2660 [inline] attach_default_qdiscs net/sched/sch_generic.c:1196 [inline] dev_activate+0x63f/0x12d0 net/sched/sch_generic.c:1255 __dev_open+0x432/0x7c0 net/core/dev.c:1691 __dev_change_flags+0x55d/0x720 net/core/dev.c:9549 netif_change_flags+0x8d/0x160 net/core/dev.c:9612 do_setlink.constprop.0+0xb53/0x4380 net/core/rtnetlink.c:3143 rtnl_changelink net/core/rtnetlink.c:3761 [inline] __rtnl_newlink net/core/rtnetlink.c:3920 [inline] rtnl_newlink+0x1446/0x2000 net/core/rtnetlink.c:4057 rtnetlink_rcv_msg+0x95b/0xe90 net/core/rtnetlink.c:6946 netlink_rcv_skb+0x155/0x420 net/netlink/af_netlink.c:2552 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8d1/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg net/socket.c:729 [inline] __sys_sendto+0x4a0/0x520 net/socket.c:2228 __do_sys_sendto net/socket.c:2235 [inline] __se_sys_sendto net/socket.c:2231 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2231 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x490 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88806bf07000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 238 bytes to the right of allocated 704-byte region [ffff88806bf07000, ffff88806bf072c0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6bf00 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b841dc0 ffffea0001e1fa00 dead000000000002 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b841dc0 ffffea0001e1fa00 dead000000000002 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0001afc001 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5947, tgid 5947 (kworker/u8:6), ts 89778648555, free_ts 89720417647 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2487 [inline] allocate_slab mm/slub.c:2655 [inline] new_slab+0x247/0x330 mm/slub.c:2709 ___slab_alloc+0xcf2/0x1740 mm/slub.c:3891 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3981 __slab_alloc_node mm/slub.c:4056 [inline] slab_alloc_node mm/slub.c:4217 [inline] __do_kmalloc_node mm/slub.c:4364 [inline] __kmalloc_noprof+0x2f2/0x510 mm/slub.c:4377 kmalloc_noprof include/linux/slab.h:909 [inline] load_elf_phdrs+0x102/0x210 fs/binfmt_elf.c:525 load_elf_binary+0x24d/0x4fe0 fs/binfmt_elf.c:854 search_binary_handler fs/exec.c:1670 [inline] exec_binprm fs/exec.c:1702 [inline] bprm_execve fs/exec.c:1754 [inline] bprm_execve+0x8bb/0x1640 fs/exec.c:1730 kernel_execve+0x2ef/0x3b0 fs/exec.c:1920 call_usermodehelper_exec_async+0x255/0x4c0 kernel/umh.c:109 ret_from_fork+0x5d4/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 page last free pid 49 tgid 49 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:340 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4180 [inline] slab_alloc_node mm/slub.c:4229 [inline] kmem_cache_alloc_node_noprof+0x1d5/0x3b0 mm/slub.c:4281 __alloc_skb+0x2b2/0x380 net/core/skbuff.c:659 alloc_skb include/linux/skbuff.h:1336 [inline] nlmsg_new include/net/netlink.h:1055 [inline] rtmsg_ifinfo_build_skb+0x81/0x280 net/core/rtnetlink.c:4392 rtmsg_ifinfo_event net/core/rtnetlink.c:4434 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:4424 [inline] rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4443 netif_state_change+0x17f/0x3b0 net/core/dev.c:1585 linkwatch_do_dev+0x12b/0x160 net/core/link_watch.c:186 __linkwatch_run_queue+0x2a7/0x8a0 net/core/link_watch.c:244 linkwatch_event+0x8f/0xc0 net/core/link_watch.c:304 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d4/0x6f0 arch/x86/kernel/process.c:148 Memory state around the buggy address: ffff88806bf07280: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff88806bf07300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88806bf07380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806bf07400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806bf07480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================