================================================================== BUG: KMSAN: kernel-infoleak in copy_to_user include/linux/uaccess.h:184 [inline] BUG: KMSAN: kernel-infoleak in vcs_read+0x18ba/0x1cc0 drivers/tty/vt/vc_screen.c:352 CPU: 0 PID: 21216 Comm: syz-executor3 Not tainted 4.17.0+ #8 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+0x185/0x1d0 lib/dump_stack.c:113 kmsan_report+0x188/0x2a0 mm/kmsan/kmsan.c:1122 kmsan_internal_check_memory+0x138/0x1f0 mm/kmsan/kmsan.c:1216 kmsan_copy_to_user+0x7a/0x160 mm/kmsan/kmsan.c:1258 copy_to_user include/linux/uaccess.h:184 [inline] vcs_read+0x18ba/0x1cc0 drivers/tty/vt/vc_screen.c:352 __vfs_read+0x1b2/0x9d0 fs/read_write.c:416 vfs_read+0x36c/0x6b0 fs/read_write.c:452 ksys_pread64 fs/read_write.c:626 [inline] __do_sys_pread64 fs/read_write.c:636 [inline] __se_sys_pread64 fs/read_write.c:633 [inline] __x64_sys_pread64+0x2f2/0x390 fs/read_write.c:633 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x455b29 RSP: 002b:00007f0cdd573c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000011 RAX: ffffffffffffffda RBX: 00007f0cdd5746d4 RCX: 0000000000455b29 RDX: 0000000000000094 RSI: 0000000020000a80 RDI: 0000000000000014 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004c0687 R14: 00000000004cfc28 R15: 0000000000000000 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:279 [inline] kmsan_save_stack mm/kmsan/kmsan.c:294 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:686 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:464 vcs_read+0xd01/0x1cc0 drivers/tty/vt/vc_screen.c:274 __vfs_read+0x1b2/0x9d0 fs/read_write.c:416 vfs_read+0x36c/0x6b0 fs/read_write.c:452 ksys_pread64 fs/read_write.c:626 [inline] __do_sys_pread64 fs/read_write.c:636 [inline] __se_sys_pread64 fs/read_write.c:633 [inline] __x64_sys_pread64+0x2f2/0x390 fs/read_write.c:633 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:279 [inline] kmsan_internal_poison_shadow+0xb8/0x1b0 mm/kmsan/kmsan.c:189 kmsan_kmalloc+0x94/0x100 mm/kmsan/kmsan.c:315 __kmalloc+0x13a/0x350 mm/slub.c:3818 kmalloc include/linux/slab.h:517 [inline] vc_allocate+0x438/0x800 drivers/tty/vt/vt.c:787 con_install+0x8c/0x640 drivers/tty/vt/vt.c:2880 tty_driver_install_tty drivers/tty/tty_io.c:1224 [inline] tty_init_dev+0x1b5/0x1020 drivers/tty/tty_io.c:1324 tty_open_by_driver drivers/tty/tty_io.c:1959 [inline] tty_open+0x17b4/0x2ed0 drivers/tty/tty_io.c:2007 chrdev_open+0xc25/0xd90 fs/char_dev.c:417 do_dentry_open+0xccc/0x1440 fs/open.c:794 vfs_open+0x1b6/0x2f0 fs/open.c:908 do_last fs/namei.c:3365 [inline] path_openat+0x4771/0x6640 fs/namei.c:3506 do_filp_open+0x261/0x640 fs/namei.c:3540 do_sys_open+0x624/0x960 fs/open.c:1101 __do_sys_open fs/open.c:1119 [inline] __se_sys_open fs/open.c:1114 [inline] __x64_sys_open+0xf2/0x130 fs/open.c:1114 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Bytes 0-79 of 148 are uninitialized Memory access starts at ffff88017d0f4000 ==================================================================