================================================================== BUG: KASAN: slab-out-of-bounds in soft_cursor+0x96b/0xa30 drivers/video/fbdev/core/softcursor.c:61 Read of size 1 at addr ffff888085d30b90 by task kworker/0:5/8861 CPU: 0 PID: 8861 Comm: kworker/0:5 Not tainted 4.19.129-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_power_efficient fb_flashcursor Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load1_noabort+0x88/0x90 mm/kasan/report.c:430 soft_cursor+0x96b/0xa30 drivers/video/fbdev/core/softcursor.c:61 bit_cursor+0x1239/0x1820 drivers/video/fbdev/core/bitblit.c:386 fb_flashcursor+0x397/0x440 drivers/video/fbdev/core/fbcon.c:399 process_one_work+0x864/0x1570 kernel/workqueue.c:2155 worker_thread+0x64c/0x1130 kernel/workqueue.c:2298 kthread+0x30b/0x410 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Allocated by task 23690: __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15a/0x3c0 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] fbcon_set_font+0x34f/0x8a0 drivers/video/fbdev/core/fbcon.c:2644 con_font_set drivers/tty/vt/vt.c:4529 [inline] con_font_op+0xd02/0x10e0 drivers/tty/vt/vt.c:4594 vt_ioctl+0x116d/0x24d0 drivers/tty/vt/vt_ioctl.c:928 tty_ioctl+0x5b0/0x15c0 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 __rcu_reclaim kernel/rcu/rcu.h:231 [inline] rcu_do_batch kernel/rcu/tree.c:2584 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] rcu_process_callbacks+0xa0d/0x18b0 kernel/rcu/tree.c:2881 __do_softirq+0x26c/0x9a0 kernel/softirq.c:292 The buggy address belongs to the object at ffff888085d30a80 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 272 bytes inside of 512-byte region [ffff888085d30a80, ffff888085d30c80) The buggy address belongs to the page: page:ffffea0002174c00 count:1 mapcount:0 mapping:ffff88812c39c940 index:0xffff888085d30800 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea0002741708 ffffea00027df608 ffff88812c39c940 raw: ffff888085d30800 ffff888085d30080 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888085d30a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888085d30b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888085d30b80: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888085d30c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888085d30c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================