Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2515140imm; Thu, 7 Jun 2018 11:59:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJnZp+ph1e8W1Uwsr515YXjSiD7XnI4tnqQN6Cv2CHhJzQnFpoTNCAh+G3NyGWBRCLqdfEo X-Received: by 2002:a65:4d47:: with SMTP id j7-v6mr2512216pgt.19.1528397946502; Thu, 07 Jun 2018 11:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528397946; cv=none; d=google.com; s=arc-20160816; b=NB+y+p9ELEy5YezabuTm5XscEcSdgRiLLnptzPl4aQuo/JHh7oxUJpF1B8//WlgQ7q D++xHN4SwJWFn7Ig5JxTS/t8EmD+MXgzj6R3xmt/cXGfdScdwpRA2GhlVBD1w15UzlEB 7r8LKZ3co9wGRodo5pPDa9nQ0VCdOiBu7upXf1nnh8uDjOphCeZB6YDuraeYB2qwlmkM bJGVAfVKu8JybgB2xmCRHP0Rlr262IQdxgQi/L8lRZzqzRx6yMo0PjAxGU5nwncycqhd QNRwHNEVFeDQxj6v38LXK0cD/rUb0Q/z5G0IUYauP1uweSYw9Xvz3limZ+8a/4gdTjE5 dJjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=cDSNmIJhN3A7cQAcb8/tQe8fQUUXQbuyhAZjLmwUn1o=; b=mBsDxTZyxFaatEvG/9tkEm98c+BVrqb7C/RBTwKu06iQ0InuQsyjCWsutKgzoHjEVZ OdQoXaY3XYqe4x5L2SqQad7jwxZch6Jh7IZ9ok2Ixi//J5GYuS5SsnDMD1qGajN1tPFR 0RE/lHg9C/3uzpqbRBPuE4D1RAwgofyHs6mohEQzIrLbm0jv0ajUae88T5sBXUghdgxm 8APUUF6TeTBkp95ZcEcJNOvR3AA4n+BM3WG5RTyucueoyM8n40ipuxsOG6Sh+e0FlspD S8ATSn53ZRkNwt6+8M7qMqnzfzJ1IdqXAHzM1vFEO5keIcZ6PkfbnDEPl9r2Gc2l/Kps YlnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TqnEOFaj; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p11-v6si52424609plk.294.2018.06.07.11.58.52; Thu, 07 Jun 2018 11:59:06 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=TqnEOFaj; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753809AbeFGQ0A (ORCPT + 99 others); Thu, 7 Jun 2018 12:26:00 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:33739 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753153AbeFGQZ5 (ORCPT ); Thu, 7 Jun 2018 12:25:57 -0400 Received: by mail-pl0-f65.google.com with SMTP id n10-v6so6459533plp.0 for ; Thu, 07 Jun 2018 09:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cDSNmIJhN3A7cQAcb8/tQe8fQUUXQbuyhAZjLmwUn1o=; b=TqnEOFajvXYtb3CsGqpcloXrrayjtEUQmZxNlW1zi3nMikWDh0cG9g928wvN+9Ff57 LH1pParaCyjZ1befHiR/pPqeJ2Ugmc7ytmPxrqaK1bC8u8OZGROfhCfEsfG+sFI7vx8+ 5DH8F/WDX4IMLaFvKh1MB68J2GE0/5y0VTCMCH+tATSyJpZ9DwgpiNsYru1n3+H0sjsE nbOvy/Goh7FTGcm+eE990iy8DkAF6LrHQF3DynJkhg+4YpAkHNCYSCy084bvWsv+MxlD 5pRuMVqDCLnlcflFF90p4nZQDo8cePNVZfF0B58X0L4LoFoPZ/phrpdyGz3vNultDoGt gycA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cDSNmIJhN3A7cQAcb8/tQe8fQUUXQbuyhAZjLmwUn1o=; b=iyLMVC8AnF102SiAfSdEPY99OxnMMeqg8Tcu20XajzOb0rHWiiNtaYqC5xqdgt4QA2 v/BJwr1xYXBs+7j+BnhU2vl7HMsOVYajqN+dApkFDiXDduY6/TLry/rMaW+AOTadHqIC wRTLZx6TSY+StNvkL4bdabOJDRwgAXlgZAliayAPCBOwxiDm99ODMngMdy50l4rjQ/5+ T9Mj6MWUc6d/xClViUz3aTMCujg2CpKsSVswI6hvHXcYYiPieyJFTY0YHXJxrYb4I4S9 CCg5MysK//NfY1lsbfqj/lLIkK4uOhNSC2wSl+Mf/QdFSemAl3NIDdPuutwoFP4IKoZ9 yXrw== X-Gm-Message-State: APt69E3h84E+v0DVrfCnx2qol2ffwNyI0uj3/j8JqO7cZ8VKYHC2B0n3 UqXoZnKYYxKUUj45s0dVd5Z924Lg6xcJnx3MxUf6ow== X-Received: by 2002:a17:902:264:: with SMTP id 91-v6mr2676360plc.341.1528388756451; Thu, 07 Jun 2018 09:25:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:d42:0:0:0:0 with HTTP; Thu, 7 Jun 2018 09:25:35 -0700 (PDT) In-Reply-To: <20180607183627-mutt-send-email-mst@kernel.org> References: <000000000000a5b2b1056a86e98c@google.com> <000000000000cf4578056ab12452@google.com> <20180607183627-mutt-send-email-mst@kernel.org> From: Dmitry Vyukov Date: Thu, 7 Jun 2018 18:25:35 +0200 Message-ID: Subject: Re: KMSAN: uninit-value in _copy_to_iter (2) To: "Michael S. Tsirkin" Cc: syzbot , avagin , David Miller , Ding Tianhong , Eric Dumazet , "Reshetova, Elena" , Jason Wang , KVM list , LKML , Matthew Dawson , Ingo Molnar , netdev , Paolo Abeni , syzkaller-bugs , Al Viro , virtualization@lists.linux-foundation.org, Willem de Bruijn Content-Type: multipart/mixed; boundary="000000000000e8e79a056e0fbcf6" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000e8e79a056e0fbcf6 Content-Type: text/plain; charset="UTF-8" On Thu, Jun 7, 2018 at 5:38 PM, Michael S. Tsirkin wrote: > #syz test: https://github.com/google/kmsan.git/master d2d741e5d1898dfde1a75ea3d29a9a3e2edf0617 Hi Michael, We need: #syz test: https://github.com/google/kmsan.git master here. Please see https://github.com/google/syzkaller/blob/master/docs/syzbot.md#testing-patches for more info. Please also add the Reported-by tag when mailing the patch for review. Thanks > 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; > > -- > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/20180607183627-mutt-send-email-mst%40kernel.org. > For more options, visit https://groups.google.com/d/optout. --000000000000e8e79a056e0fbcf6 Content-Type: application/octet-stream; name=patch Content-Disposition: attachment; filename=patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_ji4r5e8p0 ZGlmZiAtLWdpdCBhL2RyaXZlcnMvdmhvc3Qvdmhvc3QuYyBiL2RyaXZlcnMvdmhvc3Qvdmhvc3Qu YwppbmRleCBmMGJlNWYzNWFiMjguLjliZWVmYTZlZDFjZSAxMDA2NDQKLS0tIGEvZHJpdmVycy92 aG9zdC92aG9zdC5jCisrKyBiL2RyaXZlcnMvdmhvc3Qvdmhvc3QuYwpAQCAtMjM0NSw2ICsyMzQ1 LDkgQEAgc3RydWN0IHZob3N0X21zZ19ub2RlICp2aG9zdF9uZXdfbXNnKHN0cnVjdCB2aG9zdF92 aXJ0cXVldWUgKnZxLCBpbnQgdHlwZSkKIAlzdHJ1Y3Qgdmhvc3RfbXNnX25vZGUgKm5vZGUgPSBr bWFsbG9jKHNpemVvZiAqbm9kZSwgR0ZQX0tFUk5FTCk7CiAJaWYgKCFub2RlKQogCQlyZXR1cm4g TlVMTDsKKworCS8qIE1ha2Ugc3VyZSBhbGwgcGFkZGluZyB3aXRoaW4gdGhlIHN0cnVjdHVyZSBp cyBpbml0aWFsaXplZC4gKi8KKwltZW1zZXQoJm5vZGUtPm1zZywgMCwgc2l6ZW9mIG5vZGUtPm1z Zyk7CiAJbm9kZS0+dnEgPSB2cTsKIAlub2RlLT5tc2cudHlwZSA9IHR5cGU7CiAJcmV0dXJuIG5v ZGU7Cgo= --000000000000e8e79a056e0fbcf6--