Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2511547imm; Thu, 7 Jun 2018 11:54:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIbu7Pd6BNJU6lt3/B2hnQPYposDGt0E4D/AYxJuM4MS/dSTGNzy5kdJv635CLNyep/9Uqr X-Received: by 2002:a62:3e11:: with SMTP id l17-v6mr2883825pfa.18.1528397676886; Thu, 07 Jun 2018 11:54:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528397676; cv=none; d=google.com; s=arc-20160816; b=bYivvb/aX5fWa38nSNS1tdCp9NvM4mJfP4kQT4s0WcamFfn6mjxcI8GPcAebiJH2Pu EnRlyQhUMRwOx8ArlWuIswLw48Vn2kecCdh2rYqmYT3Yxt3slr0MW9B4NCPLwivbErgX vm83eLAu/THghxgqRlFdBw02LsIOFvUKANTieZ5MfqkU1OOLko16cJYFpKvr7pEQjkJo JyrHTuYSG7xL4JKeD0W/o2e78KJYftgm8NdvQkmQls8qo8M481NPOd7HAI2Z11sSHkeA soEygurCLFM67b+if5qAC2memtjrsPTc9GeNhbgdEwKLwckF5YhrgV+stz6P6z+2UNYM gl2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:message-id:in-reply-to :date:mime-version:arc-authentication-results; bh=0M/fXvT78lIcsKcjUMbL+7c5TkMF9QMbAsWAjrc249U=; b=yLTKPdoa60U1XfMmY6x/9TFzOhvotCZNkUJ6rwQL1EeJD6MY5apbuCoXqeFdVcISLs vnm8YQfJhwNHZa91i0txnFt7qz7KyvgVdoIwmC7IcUgc9dd4HHm460KKXr/6tJPbEVr4 2HagIPRPjGTV869QfffuqyvFHkM7f4V72ci6JclA6TI7Pmly1KeN+IbTNj3HPshVMKYu UGCX4dmF5AcC1ZFcXcOAL22ZK0sUa61LBIrQjvFwED7USKSc/agFbwoPtuYrVp8265yT WfYrBDHIXI7ZgFEorqiHCEnnP4EUmC7MVujvci9tgzdXUkQq4HSvtaC2UiE36aARgc1b tRhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k124-v6si10757444pgc.519.2018.06.07.11.54.22; Thu, 07 Jun 2018 11:54:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934302AbeFGPi5 (ORCPT + 99 others); Thu, 7 Jun 2018 11:38:57 -0400 Received: from mail-it0-f70.google.com ([209.85.214.70]:43765 "EHLO mail-it0-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933193AbeFGPix (ORCPT ); Thu, 7 Jun 2018 11:38:53 -0400 Received: by mail-it0-f70.google.com with SMTP id i9-v6so8165403itb.8 for ; Thu, 07 Jun 2018 08:38:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to:cc; bh=0M/fXvT78lIcsKcjUMbL+7c5TkMF9QMbAsWAjrc249U=; b=eZkAc+VDWCFvyOrdU0u5OOEXZ9azj/5+aasCkairl1wULYhXiU/FRGJIE9pHMUziVg lHMen/AbL2nk/bIGg7xnfbZ837kR6H5eqetJNsTFtrXRDfry1PzE9u4qULYrGOZdFycx WJ/wDtb6HkBGKSdGuS3Coxg8ItWi0+eIbTnC9e8CNiP1w9LaPMl/4jMS26tX5wKkmllG w7Z77pvniOaIc6z6dUqQwIXCzWWLdkllnHBI28ATTGbZ61SlmxN1KZinpwRaBZPetNux vhwPYpN6hYBGTuksaMJQKCOuSxjCmvC8BNSm7xepEUZq7qV9VvKe7SiCBJoiTXizXSYK U9Tg== X-Gm-Message-State: APt69E13UDGy/1QLC3WXwzsFvrcudRGydaUu2K0Yj4QCyN8NRIU1qp6Y 4KyP4ReejrTZhFIMX0TnIjmdbdNP2qANfiFNdkZouxBpAI7t MIME-Version: 1.0 X-Received: by 2002:a6b:700a:: with SMTP id l10-v6mr999556ioc.60.1528385932836; Thu, 07 Jun 2018 08:38:52 -0700 (PDT) Date: Thu, 07 Jun 2018 08:38:52 -0700 In-Reply-To: <20180607183627-mutt-send-email-mst@kernel.org> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000009b46ec056e0f1460@google.com> Subject: Re: Re: KMSAN: uninit-value in _copy_to_iter (2) From: syzbot To: "Michael S. Tsirkin" Cc: avagin@openvz.org, davem@davemloft.net, dingtianhong@huawei.com, edumazet@google.com, elena.reshetova@intel.com, jasowang@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, matthew@mjdsystems.ca, mingo@kernel.org, mst@redhat.com, netdev@vger.kernel.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk, virtualization@lists.linux-foundation.org, willemb@google.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > #syz test: https://github.com/google/kmsan.git/master > d2d741e5d1898dfde1a75ea3d29a9a3e2edf0617 "https://github.com/google/kmsan.git/master" does not look like a valid git repo address. > Subject: vhost: fix info leak > Fixes: CVE-2018-1118 > Signed-off-by: Michael S. Tsirkin > --- > diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c > index f0be5f35ab28..9beefa6ed1ce 100644 > --- a/drivers/vhost/vhost.c > +++ b/drivers/vhost/vhost.c > @@ -2345,6 +2345,9 @@ struct vhost_msg_node *vhost_new_msg(struct > vhost_virtqueue *vq, int type) > struct vhost_msg_node *node = kmalloc(sizeof *node, GFP_KERNEL); > if (!node) > return NULL; > + > + /* Make sure all padding within the structure is initialized. */ > + memset(&node->msg, 0, sizeof node->msg); > node->vq = vq; > node->msg.type = type; > return node;