================================================================== BUG: KASAN: slab-out-of-bounds in vcs_scr_readw+0xc2/0xd0 drivers/tty/vt/vt.c:4665 Read of size 2 at addr ffff8880a3db92c0 by task syz-executor.3/614 CPU: 1 PID: 614 Comm: syz-executor.3 Not tainted 5.4.0-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+0x197/0x210 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd4/0x30b mm/kasan/report.c:374 __kasan_report.cold+0x1b/0x41 mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:638 __asan_report_load2_noabort+0x14/0x20 mm/kasan/generic_report.c:133 vcs_scr_readw+0xc2/0xd0 drivers/tty/vt/vt.c:4665 vcs_write+0x646/0xcf0 drivers/tty/vt/vc_screen.c:545 __vfs_write+0x8a/0x110 fs/read_write.c:494 __kernel_write+0x11b/0x3b0 fs/read_write.c:515 write_pipe_buf+0x15d/0x1f0 fs/splice.c:807 splice_from_pipe_feed fs/splice.c:512 [inline] __splice_from_pipe+0x3ee/0x7c0 fs/splice.c:636 splice_from_pipe+0x108/0x170 fs/splice.c:671 default_file_splice_write+0x3c/0x90 fs/splice.c:819 do_splice_from fs/splice.c:861 [inline] direct_splice_actor+0x123/0x190 fs/splice.c:1035 splice_direct_to_actor+0x3b4/0xa30 fs/splice.c:990 do_splice_direct+0x1da/0x2a0 fs/splice.c:1078 do_sendfile+0x597/0xd00 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1dd/0x220 fs/read_write.c:1511 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a679 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f366c2cac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045a679 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 000000000000000a RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000 R10: 0020000102000007 R11: 0000000000000246 R12: 00007f366c2cb6d4 R13: 00000000004c8f16 R14: 00000000004e0a30 R15: 00000000ffffffff Allocated by task 1: save_stack+0x23/0x90 mm/kasan/common.c:71 set_track mm/kasan/common.c:79 [inline] __kasan_kmalloc mm/kasan/common.c:512 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:485 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:526 __do_kmalloc mm/slab.c:3656 [inline] __kmalloc+0x163/0x770 mm/slab.c:3665 kmalloc include/linux/slab.h:561 [inline] kzalloc include/linux/slab.h:670 [inline] vc_do_resize+0x262/0x1460 drivers/tty/vt/vt.c:1187 vc_resize+0x4d/0x60 drivers/tty/vt/vt.c:1304 fbcon_init+0x122d/0x1a90 drivers/video/fbdev/core/fbcon.c:1212 visual_init+0x30a/0x5e0 drivers/tty/vt/vt.c:1051 do_bind_con_driver+0x54c/0x8b0 drivers/tty/vt/vt.c:3532 do_take_over_console+0x449/0x5a0 drivers/tty/vt/vt.c:4113 do_fbcon_takeover+0x116/0x220 drivers/video/fbdev/core/fbcon.c:581 fbcon_fb_registered+0x275/0x340 drivers/video/fbdev/core/fbcon.c:3252 do_register_framebuffer drivers/video/fbdev/core/fbmem.c:1652 [inline] register_framebuffer+0x5c3/0xa10 drivers/video/fbdev/core/fbmem.c:1821 vga16fb_probe+0x711/0x825 drivers/video/fbdev/vga16fb.c:1373 platform_drv_probe+0x8d/0x140 drivers/base/platform.c:725 really_probe+0x291/0x710 drivers/base/dd.c:548 driver_probe_device+0x110/0x220 drivers/base/dd.c:721 __device_attach_driver+0x1c9/0x230 drivers/base/dd.c:828 bus_for_each_drv+0x172/0x1f0 drivers/base/bus.c:430 __device_attach+0x237/0x390 drivers/base/dd.c:894 device_initial_probe+0x1b/0x20 drivers/base/dd.c:941 bus_probe_device+0x1f1/0x2a0 drivers/base/bus.c:490 device_add+0x14fe/0x1d00 drivers/base/core.c:2487 platform_device_add+0x34d/0x6c0 drivers/base/platform.c:562 vga16fb_init+0x15f/0x1d6 drivers/video/fbdev/vga16fb.c:1431 do_one_initcall+0x120/0x81a init/main.c:938 do_initcall_level init/main.c:1006 [inline] do_initcalls init/main.c:1014 [inline] do_basic_setup init/main.c:1031 [inline] kernel_init_freeable+0x4ca/0x5b9 init/main.c:1191 kernel_init+0x12/0x1bf init/main.c:1109 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8880a3db8000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 4800 bytes inside of 8192-byte region [ffff8880a3db8000, ffff8880a3dba000) The buggy address belongs to the page: page:ffffea00028f6e00 refcount:1 mapcount:0 mapping:ffff8880aa4021c0 index:0x0 compound_mapcount: 0 raw: 00fffe0000010200 ffffea000294c308 ffffea0002820b08 ffff8880aa4021c0 raw: 0000000000000000 ffff8880a3db8000 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a3db9180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a3db9200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880a3db9280: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff8880a3db9300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a3db9380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================