================================================================== BUG: KASAN: slab-out-of-bounds in soft_cursor+0x37f/0xc30 drivers/video/fbdev/core/softcursor.c:70 Read of size 8 at addr ffff88805c9e8c50 by task syz.4.1768/15522 CPU: 1 PID: 15522 Comm: syz.4.1768 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x241/0x290 mm/kasan/generic.c:187 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105 soft_cursor+0x37f/0xc30 drivers/video/fbdev/core/softcursor.c:70 cw_cursor+0x1fcb/0x2bd0 drivers/video/fbdev/core/fbcon_cw.c:363 hide_cursor+0x7f/0x320 drivers/tty/vt/vt.c:855 redraw_screen+0x200/0x1000 drivers/tty/vt/vt.c:960 vc_do_resize+0x1256/0x17f0 drivers/tty/vt/vt.c:1293 fbcon_modechanged+0x80d/0x12b0 drivers/video/fbdev/core/fbcon.c:2779 fbcon_rotate_all drivers/video/fbdev/core/fbcon.c:252 [inline] store_rotate_all+0x531/0x620 drivers/video/fbdev/core/fbcon.c:3322 kernfs_fop_write_iter+0x3a4/0x520 fs/kernfs/file.c:352 call_write_iter include/linux/fs.h:2021 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x474/0x9a0 fs/read_write.c:584 ksys_write+0x151/0x260 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7ff90f9a9519 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:00007ff910798028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ff90fc36270 RCX: 00007ff90f9a9519 RDX: 0000000000000001 RSI: 0000200000000580 RDI: 0000000000000006 RBP: 00007ff90fa39136 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff90fc36308 R14: 00007ff90fc36270 R15: 00007ffee7296cf8 Allocated by task 10331: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc+0xb7/0x240 mm/slab_common.c:1020 kmalloc_array include/linux/slab.h:637 [inline] fbcon_rotate_font+0x42f/0xe30 drivers/video/fbdev/core/fbcon_rotate.c:54 fbcon_do_set_font+0xe16/0x2350 drivers/video/fbdev/core/fbcon.c:2467 con_font_set drivers/tty/vt/vt.c:4632 [inline] con_font_op+0xc3c/0xf60 drivers/tty/vt/vt.c:4679 vt_k_ioctl drivers/tty/vt/vt_ioctl.c:476 [inline] vt_ioctl+0x1a21/0x1f20 drivers/tty/vt/vt_ioctl.c:754 tty_ioctl+0x91e/0xdc0 drivers/tty/tty_io.c:2796 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 __call_rcu_common kernel/rcu/tree.c:2689 [inline] call_rcu+0x153/0x900 kernel/rcu/tree.c:2805 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1499 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1205 [inline] sctp_do_sm+0xa1e/0x5b70 net/sctp/sm_sideeffect.c:1176 sctp_endpoint_bh_rcv+0x573/0x7c0 net/sctp/endpointola.c:411 sctp_rcv+0x1154/0x17f0 net/sctp/input.c:243 sctp6_rcv+0x39/0x70 net/sctp/ipv6.c:1133 ip6_protocol_deliver_rcu+0x980/0x13e0 net/ipv6/ip6_input.c:438 ip6_input_finish+0x184/0x2c0 net/ipv6/ip6_input.c:483 NF_HOOK+0x32d/0x3b0 include/linux/netfilter.h:316 NF_HOOK+0x32d/0x3b0 include/linux/netfilter.h:316 __netif_receive_skb_one_core net/core/dev.c:5726 [inline] __netif_receive_skb+0xcc/0x290 net/core/dev.c:5840 process_backlog+0x380/0x710 net/core/dev.c:6168 __napi_poll+0xbb/0x460 net/core/dev.c:6730 napi_poll net/core/dev.c:6797 [inline] net_rx_action+0x65f/0xcc0 net/core/dev.c:6933 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 do_softirq+0xfa/0x1a0 kernel/softirq.c:479 __local_bh_enable_ip+0x184/0x1c0 kernel/softirq.c:406 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:856 [inline] __dev_queue_xmit+0x1486/0x3a30 net/core/dev.c:4564 dev_queue_xmit include/linux/netdevice.h:3174 [inline] neigh_hh_output include/net/neighbour.h:531 [inline] neigh_output include/net/neighbour.h:545 [inline] ip6_finish_output2+0xe2a/0x1550 net/ipv6/ip6_output.c:138 NF_HOOK_COND include/linux/netfilter.h:305 [inline] ip6_output+0x33b/0x530 net/ipv6/ip6_output.c:242 dst_output include/net/dst.h:470 [inline] NF_HOOK include/linux/netfilter.h:316 [inline] ip6_xmit+0x1258/0x1a30 net/ipv6/ip6_output.c:367 sctp_v6_xmit+0x93c/0x1190 net/sctp/ipv6.c:251 sctp_packet_transmit+0x23e4/0x2950 net/sctp/output.c:653 sctp_outq_flush_transports net/sctp/outqueue.c:1174 [inline] sctp_outq_flush+0x2e5c/0x32e0 net/sctp/outqueue.c:1222 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:-1 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1205 [inline] sctp_do_sm+0x543b/0x5b70 net/sctp/sm_sideeffect.c:1176 sctp_primitive_SEND+0x98/0xc0 net/sctp/primitive.c:163 sctp_sendmsg_to_asoc+0x11d8/0x1980 net/sctp/socket.c:1918 sctp_sendmsg+0x1afa/0x27b0 net/sctp/socket.c:2085 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] sock_sendmsg+0x23b/0x3a0 net/socket.c:768 splice_to_socket+0xc3c/0x13c0 fs/splice.c:881 do_splice_from fs/splice.c:933 [inline] do_splice+0xe45/0x1ba0 fs/splice.c:1292 __do_splice fs/splice.c:1370 [inline] __do_sys_splice fs/splice.c:1586 [inline] __se_sys_splice+0x398/0x4a0 fs/splice.c:1568 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Second to last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 kvfree_call_rcu+0xee/0x780 kernel/rcu/tree.c:3420 batadv_hardif_release net/batman-adv/hard-interface.c:56 [inline] kref_put include/linux/kref.h:65 [inline] batadv_hardif_put net/batman-adv/hard-interface.h:96 [inline] batadv_hard_if_event+0x7e0/0x1570 net/batman-adv/hard-interface.c:1020 notifier_call_chain+0x18f/0x380 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2077 [inline] call_netdevice_notifiers net/core/dev.c:2091 [inline] unregister_netdevice_many_notify+0x1037/0x1910 net/core/dev.c:11294 unregister_netdevice_many net/core/dev.c:11350 [inline] default_device_exit_batch+0x5e3/0x670 net/core/dev.c:11941 ops_exit_list net/core/net_namespace.c:178 [inline] cleanup_net+0x785/0xb00 net/core/net_namespace.c:656 process_one_work kernel/workqueue.c:2657 [inline] process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 The buggy address belongs to the object at ffff88805c9e8800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 80 bytes to the right of allocated 1024-byte region [ffff88805c9e8800, ffff88805c9e8c00) The buggy address belongs to the physical page: page:ffffea0001727a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5c9e8 head:ffffea0001727a00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888018c41dc0 ffffea0001e07200 dead000000000002 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 5782, tgid 5782 (syz-executor), ts 73421206357, free_ts 24910215477 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1583 prep_new_page mm/page_alloc.c:1590 [inline] get_page_from_freelist+0x219a/0x22c0 mm/page_alloc.c:3231 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4511 alloc_slab_page+0x5d/0x180 mm/slub.c:1909 allocate_slab mm/slub.c:2056 [inline] new_slab+0x87/0x2d0 mm/slub.c:2109 ___slab_alloc+0xc5c/0x12f0 mm/slub.c:3281 __slab_alloc mm/slub.c:3367 [inline] __slab_alloc_node mm/slub.c:3420 [inline] slab_alloc_node mm/slub.c:3514 [inline] __kmem_cache_alloc_node+0x122/0x260 mm/slub.c:3563 kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:721 [inline] batadv_hardif_add_interface net/batman-adv/hard-interface.c:882 [inline] batadv_hard_if_event+0xdb1/0x1570 net/batman-adv/hard-interface.c:970 notifier_call_chain+0x18f/0x380 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2077 [inline] call_netdevice_notifiers net/core/dev.c:2091 [inline] register_netdevice+0x1670/0x1ba0 net/core/dev.c:10435 virt_wifi_newlink+0x38a/0x7d0 drivers/net/wireless/virtual/virt_wifi.c:568 rtnl_newlink_create net/core/rtnetlink.c:3534 [inline] __rtnl_newlink net/core/rtnetlink.c:3754 [inline] rtnl_newlink+0x15a0/0x2170 net/core/rtnetlink.c:3767 rtnetlink_rcv_msg+0x843/0xf90 net/core/rtnetlink.c:6489 netlink_rcv_skb+0x235/0x4c0 net/netlink/af_netlink.c:2562 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x856/0x9e0 net/netlink/af_netlink.c:1346 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1183 [inline] free_unref_page_prepare+0x7d7/0x8f0 mm/page_alloc.c:2374 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2467 free_contig_range+0xa1/0x150 mm/page_alloc.c:6441 destroy_args+0x7d/0x840 mm/debug_vm_pgtable.c:1015 debug_vm_pgtable+0x411/0x440 mm/debug_vm_pgtable.c:1400 do_one_initcall+0x242/0x790 init/main.c:1215 do_initcall_level+0x13d/0x1f0 init/main.c:1277 do_initcalls+0x69/0xd0 init/main.c:1293 kernel_init_freeable+0x3d9/0x560 init/main.c:1530 kernel_init+0x1d/0x1c0 init/main.c:1420 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Memory state around the buggy address: ffff88805c9e8b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805c9e8b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805c9e8c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805c9e8c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805c9e8d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================