================================================================== BUG: KASAN: slab-out-of-bounds in fbcon_get_font+0x1de/0x910 drivers/video/fbdev/core/fbcon.c:2474 Read of size 3 at addr ffff88809e582d0f by task syz-executor.4/29308 CPU: 1 PID: 29308 Comm: syz-executor.4 Not tainted 5.7.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1e9/0x30e lib/dump_stack.c:118 print_address_description+0x74/0x5c0 mm/kasan/report.c:382 __kasan_report+0x103/0x1a0 mm/kasan/report.c:511 kasan_report+0x4d/0x80 mm/kasan/common.c:625 Allocated by task 23027: save_stack mm/kasan/common.c:49 [inline] set_track mm/kasan/common.c:57 [inline] __kasan_kmalloc+0x114/0x160 mm/kasan/common.c:495 __do_kmalloc mm/slab.c:3656 [inline] __kmalloc+0x24b/0x330 mm/slab.c:3665 kmalloc include/linux/slab.h:560 [inline] fbcon_set_font+0x2c4/0x970 drivers/video/fbdev/core/fbcon.c:2672 con_font_set drivers/tty/vt/vt.c:4571 [inline] con_font_op+0xebc/0x1630 drivers/tty/vt/vt.c:4636 vt_ioctl+0x179d/0x3eb0 drivers/tty/vt/vt_ioctl.c:265 tty_ioctl+0xee4/0x15c0 drivers/tty/tty_io.c:2656 vfs_ioctl fs/ioctl.c:47 [inline] ksys_ioctl fs/ioctl.c:771 [inline] __do_sys_ioctl fs/ioctl.c:780 [inline] __se_sys_ioctl+0xf9/0x160 fs/ioctl.c:778 do_syscall_64+0xf3/0x1b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 22682: save_stack mm/kasan/common.c:49 [inline] set_track mm/kasan/common.c:57 [inline] kasan_set_free_info mm/kasan/common.c:317 [inline] __kasan_slab_free+0x125/0x190 mm/kasan/common.c:456 __cache_free mm/slab.c:3426 [inline] kfree+0x10a/0x220 mm/slab.c:3757 put_pipe_info fs/pipe.c:711 [inline] pipe_release+0x235/0x310 fs/pipe.c:734 __fput+0x2ed/0x750 fs/file_table.c:280 task_work_run+0x147/0x1d0 kernel/task_work.c:123 get_signal+0x1cae/0x1d60 kernel/signal.c:2533 do_signal+0x33/0x610 arch/x86/kernel/signal.c:784 exit_to_usermode_loop arch/x86/entry/common.c:161 [inline] prepare_exit_to_usermode+0x32a/0x600 arch/x86/entry/common.c:196 entry_SYSCALL_64_after_hwframe+0x49/0xb3 The buggy address belongs to the object at ffff88809e582c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 271 bytes inside of 512-byte region [ffff88809e582c00, ffff88809e582e00) The buggy address belongs to the page: page:ffffea0002796080 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88809e582800 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00029ccec8 ffffea0002a22908 ffff8880aa400a80 raw: ffff88809e582800 ffff88809e582000 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809e582c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88809e582c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88809e582d00: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88809e582d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88809e582e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================