IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready sg_write: data in/out 91/78 bytes for SCSI command 0x0-- guessing data in; program syz-executor5 not setting count and/or reply_len properly ================================================================== BUG: KMSAN: kernel-infoleak in copy_to_user include/linux/uaccess.h:184 [inline] BUG: KMSAN: kernel-infoleak in copy_from_read_buf+0x311/0x890 drivers/tty/n_tty.c:1955 CPU: 0 PID: 6846 Comm: syz-executor6 Not tainted 4.17.0+ #21 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:1437 kmsan_internal_check_memory+0x17e/0x1f0 mm/kmsan/kmsan.c:1515 kmsan_copy_to_user+0x7a/0x160 mm/kmsan/kmsan.c:1538 copy_to_user include/linux/uaccess.h:184 [inline] copy_from_read_buf+0x311/0x890 drivers/tty/n_tty.c:1955 n_tty_read+0x178f/0x2f70 drivers/tty/n_tty.c:2226 tty_read+0x26e/0x6c0 drivers/tty/tty_io.c:865 do_loop_readv_writev fs/read_write.c:700 [inline] do_iter_read+0x884/0xd80 fs/read_write.c:924 vfs_readv fs/read_write.c:986 [inline] do_readv+0x295/0x5f0 fs/read_write.c:1019 __do_sys_readv fs/read_write.c:1106 [inline] __se_sys_readv fs/read_write.c:1103 [inline] __x64_sys_readv+0xe1/0x120 fs/read_write.c:1103 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x455ba9 RSP: 002b:00007f1e18fe7c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000013 RAX: ffffffffffffffda RBX: 00007f1e18fe86d4 RCX: 0000000000455ba9 RDX: 0000000000000001 RSI: 0000000020000080 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004c098f R14: 00000000004d08c0 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:313 [inline] kmsan_internal_alloc_meta_for_pages+0x146/0x700 mm/kmsan/kmsan.c:842 kmsan_alloc_page+0x75/0xd0 mm/kmsan/kmsan.c:1140 __alloc_pages_nodemask+0xf7b/0x5cc0 mm/page_alloc.c:4404 alloc_pages_current+0x6b1/0x970 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:494 [inline] __vmalloc_area_node mm/vmalloc.c:1702 [inline] __vmalloc_node_range+0x8bf/0x1170 mm/vmalloc.c:1767 __vmalloc_node mm/vmalloc.c:1812 [inline] __vmalloc_node_flags mm/vmalloc.c:1826 [inline] vmalloc+0xd8/0xf0 mm/vmalloc.c:1848 n_tty_open+0x4a/0x490 drivers/tty/n_tty.c:1881 tty_ldisc_open drivers/tty/tty_ldisc.c:466 [inline] tty_ldisc_setup+0x17f/0x670 drivers/tty/tty_ldisc.c:771 tty_init_dev+0xb82/0x1020 drivers/tty/tty_io.c:1345 ptmx_open+0x2bb/0x7c0 drivers/tty/pty.c:832 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_openat fs/open.c:1128 [inline] __se_sys_openat fs/open.c:1122 [inline] __x64_sys_openat+0x129/0x170 fs/open.c:1122 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x63/0xe7 Byte 4094 of 4095 is uninitialized Memory access starts at ffffc900124a105e ==================================================================