================================================================== BUG: KASAN: slab-out-of-bounds in __fb_pad_aligned_buffer include/linux/fb.h:655 [inline] BUG: KASAN: slab-out-of-bounds in bit_putcs_aligned drivers/video/fbdev/core/bitblit.c:96 [inline] BUG: KASAN: slab-out-of-bounds in bit_putcs+0xc74/0xe10 drivers/video/fbdev/core/bitblit.c:185 Read of size 1 at addr ffff88809a55493f by task syz-executor321/7074 CPU: 0 PID: 7074 Comm: syz-executor321 Not tainted 5.7.0-rc1-next-20200415-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+0x188/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x315 mm/kasan/report.c:382 __kasan_report.cold+0x35/0x4d mm/kasan/report.c:511 kasan_report+0x33/0x50 mm/kasan/common.c:625 __fb_pad_aligned_buffer include/linux/fb.h:655 [inline] bit_putcs_aligned drivers/video/fbdev/core/bitblit.c:96 [inline] bit_putcs+0xc74/0xe10 drivers/video/fbdev/core/bitblit.c:185 fbcon_putcs+0x345/0x3f0 drivers/video/fbdev/core/fbcon.c:1362 do_update_region+0x398/0x630 drivers/tty/vt/vt.c:677 redraw_screen+0x64c/0x770 drivers/tty/vt/vt.c:1023 vc_do_resize+0xfe6/0x1340 drivers/tty/vt/vt.c:1308 vt_ioctl+0x2062/0x26b0 drivers/tty/vt/vt_ioctl.c:901 tty_ioctl+0xedc/0x1440 drivers/tty/tty_io.c:2656 vfs_ioctl fs/ioctl.c:47 [inline] ksys_ioctl+0x11a/0x180 fs/ioctl.c:763 __do_sys_ioctl fs/ioctl.c:772 [inline] __se_sys_ioctl fs/ioctl.c:770 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:770 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x440269 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 5b 14 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fffbc6d1a08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440269 RDX: 0000000020000040 RSI: 000000000000560a RDI: 0000000000000004 RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401b50 R13: 0000000000401be0 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 7074: save_stack+0x1b/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:468 __do_kmalloc mm/slab.c:3656 [inline] __kmalloc+0x161/0x7a0 mm/slab.c:3665 kmalloc include/linux/slab.h:560 [inline] fbcon_set_font+0x331/0x870 drivers/video/fbdev/core/fbcon.c:2672 con_font_set drivers/tty/vt/vt.c:4565 [inline] con_font_op+0xd65/0x1160 drivers/tty/vt/vt.c:4630 vt_ioctl+0xce5/0x26b0 drivers/tty/vt/vt_ioctl.c:928 tty_ioctl+0xedc/0x1440 drivers/tty/tty_io.c:2656 vfs_ioctl fs/ioctl.c:47 [inline] ksys_ioctl+0x11a/0x180 fs/ioctl.c:763 __do_sys_ioctl fs/ioctl.c:772 [inline] __se_sys_ioctl fs/ioctl.c:770 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:770 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 5023: save_stack+0x1b/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] kasan_set_free_info mm/kasan/common.c:317 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/common.c:456 __cache_free mm/slab.c:3426 [inline] kfree+0x109/0x2b0 mm/slab.c:3757 kernfs_fop_release+0x124/0x190 fs/kernfs/file.c:782 __fput+0x33e/0x880 fs/file_table.c:280 task_work_run+0xf4/0x1b0 kernel/task_work.c:123 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x2fa/0x360 arch/x86/entry/common.c:165 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:279 [inline] do_syscall_64+0x6b1/0x7d0 arch/x86/entry/common.c:305 entry_SYSCALL_64_after_hwframe+0x49/0xb3 The buggy address belongs to the object at ffff88809a554800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 319 bytes inside of 512-byte region [ffff88809a554800, ffff88809a554a00) The buggy address belongs to the page: page:ffffea0002695500 refcount:1 mapcount:0 mapping:000000003202ca1c index:0x0 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00027ae508 ffffea00025d7e88 ffff8880aa000a80 raw: 0000000000000000 ffff88809a554000 0000000100000004 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809a554800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88809a554880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88809a554900: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88809a554980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88809a554a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================