Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp472621rdb; Fri, 26 Jan 2024 00:53:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwSNjha/JnboINXchayDvFz0uTBcRyWdT7d5LlhtCjN+rACBLi2vv0vSNUfB1HlgCuudrS X-Received: by 2002:a05:6358:4287:b0:176:2f9d:e83 with SMTP id s7-20020a056358428700b001762f9d0e83mr1138668rwc.35.1706259208046; Fri, 26 Jan 2024 00:53:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706259208; cv=pass; d=google.com; s=arc-20160816; b=t/PLoTQ8fwQhigYDgmnN7cjvow3DPE/e80y3jJtfrAKD/7SvQ0DSAJoQe24w3BDz2h W/vFTbAiBjwFr6h6UhkF5/mrDA8497bJwDQB3bmvr4UEreXc2snBMYm2p8Pxe0pPBPXJ aenzzAWnRmj0cNfAa6yBLDHahR0bLsIAxONmJkhJOc6O3g5Zp94mUa8sqXE/7hoK9H1o fz77FmkaJPzy3TGVtf1zcpRQbWW1YlZWzQ2Tiajxdby/poBBzrucscAw1A7TP02ROZl1 VhGwCHqYRGQfdiTTjIEPbZguMc82c4DCtH7gPhR/wHeIpqfpH4i4qG7XJnbo4WT+3LJA UjfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:date :subject:cc:to:from:message-id:dkim-signature; bh=dsSSj5gkDCcVs1xlBOaqKLlk0NdIYeNu5G6pUUGGwVw=; fh=3w4jWUTc3qHOCDzmHtTQOqYDykBGGj9a/F6+bVwBiVQ=; b=LIlfaqog+yZDyQ8NyDEQOVYTcJeBw40MrcDJOC1KpI3HdL7ud23Ik1VcbkraVlGCc5 HYY0zrGDz/ORUWnfnXzYcTv3iqOHDm7jCXAJ0yfFYpqocnBgRoMxuVtT3HdsmY3m0As4 INWmkUb8P15qZNKeoZL+UPA3b2NJqkgWaggPKl1nFaFkj1IpB5nD3E3scja1MvtgizLI FQidRxCY4pmIEpxgQfA2pYVzNaLkzJU1aM4Mt3/NqF6M2Mk5xA/QS4w7HKC1D8hguxUI yEQB4Pa1VOYlcxPhXDIE/GulO5qVtsCtCDzL1hZxeFRuTYeA55mb1g5ixoc9zBBsd7C9 Nqow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=VmNULSMT; arc=pass (i=1 spf=pass spfdomain=qq.com dkim=pass dkdomain=qq.com dmarc=pass fromdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-39678-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39678-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=qq.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ca27-20020a056a02069b00b005c2791fedb4si798987pgb.21.2024.01.26.00.53.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 00:53:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39678-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=VmNULSMT; arc=pass (i=1 spf=pass spfdomain=qq.com dkim=pass dkdomain=qq.com dmarc=pass fromdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-39678-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39678-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=qq.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 50C7B2847EC for ; Fri, 26 Jan 2024 08:53:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80585219F1; Fri, 26 Jan 2024 06:57:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="VmNULSMT" Received: from out203-205-221-205.mail.qq.com (out203-205-221-205.mail.qq.com [203.205.221.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D304EBE65 for ; Fri, 26 Jan 2024 06:57:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.205.221.205 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706252229; cv=none; b=D8U2YvdHM91XKIVq70XjADBdbE2sbKUsRY5HpBdCePuv0erYWt3dhZ2kldJyZtnM3Plj3WdL9a+iSWudEGrpvfUUcmn7GDL0kfUAhbJqNWeEKcfAiDjWzW8B7+fVehOkwxWLTMIIDpoAaA8upSWhUJtw0ckuTFeFLxUfdjnY/Wk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706252229; c=relaxed/simple; bh=vEh+gFEmMdUX9UP227WSXtBed/m/QQhh+3wwORgi3E4=; h=Message-ID:From:To:Cc:Subject:Date:In-Reply-To:References: MIME-Version; b=fnBWUE/jaifr1ZjV1QsPCrCTNqer/UD8QvOTHcWuyCFr6CCME8WP5OTaynkzp0ctmMW4AqQHmjocM4BJu8FmSlMMsdOMrfM9Yqo0J0CdczTO5xjsRTuthfCFM9zf7Yv+mQDSPPUJNuFbCb+ZuO35rLmYXdxASBa9mDL4vXVzHuI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=qq.com; spf=pass smtp.mailfrom=qq.com; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b=VmNULSMT; arc=none smtp.client-ip=203.205.221.205 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=qq.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qq.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1706252223; bh=dsSSj5gkDCcVs1xlBOaqKLlk0NdIYeNu5G6pUUGGwVw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=VmNULSMTOSYvPQD+Bch5hVyGRfxr9yxLi2QeIr62lXdFUuVuov5uKAb/g7cFIfqHg 4CyINrj6gKA2KweyXEwj8n/N+auNp3FeghfUsmdCkT0kbQ7ZbSfc3nr66WdQiI+OkJ p+1y8XKBdKiDxR7ZaTfXA4Riv5djSSnIc10isWQw= Received: from pek-lxu-l1.wrs.com ([111.198.225.215]) by newxmesmtplogicsvrszc5-2.qq.com (NewEsmtp) with SMTP id E4190423; Fri, 26 Jan 2024 14:57:01 +0800 X-QQ-mid: xmsmtpt1706252221tukiio7xg Message-ID: X-QQ-XMAILINFO: N0opbxSOYLeW3R5+ZbRXyG1qcSjYEzLJegoCfPpFNTH/YM3fvTMR9PYluFQlKg Ol9Bq/PtCDbZRwX9XMDAibeZX3T40ayXiqvvW1Dn8NV765j3Cfg2flxzitIsuh/GynKmP2SjVVIG 1KO97k/+Cjft9WSa2x6/4vu+klm7CPnUaQctsTm3kKqQ74e26eVjtCiPZWLblUC5WiMm4bDsXg4t xWiawLxZ7knLs9evvXuKFkVxHzLpRMOPkk4Zes0KqWeC0AgxTlJdfqmzDpD2BFuu+HHGp/plgOze I8FsQmBdyfJxQ/am1+Iut/bPKWblrpMlZnwNwK85Za85KYgl+7mfwM+b4s4Y+cyKdwfIKLP0m9aw jTWFaElXMuy9Xu9sZt9FKU/fEAclDBrLBepm1e4HzYB0ISKe/uyq4Gk56zpUJuzX2KQsWglrSl2I U34pDUqBn0vTgHqQvmRdF7ze07bHrDIywThYDmg9FYfllEyCG9F1mLacwp2keMm7LdPp1e7i7RwY omYPmqnAN7hNlK2ddjCUCIefjeVEvkOV44YSWr5fOZkk++rG3kaMHBpLDftRECN5Ne4SNp6RclH/ TfMpFoolWrxASOnRkcsdUVZ054qF7bp8pISjX5+PH/mmxQUx005I2fiYSiS8/HjMk3fQSeDMvsBy bF3EUrUvV4ZrC5BD6CWAyiIRMNTeJMB6wi1IOSVg8EYLESqvylZ/eJ214Y8NNXAw4dflRQGHi3Mh mGydXDgcaLjf79jPRaa+Ogc5mRs3uG3NU8zU57cjRc6rSRYMf0ZeOaNM4C47e2B9F+jyUc+psJ5L 6wRP/Wa7GPk2sBfeHzBdPUi4xl514Sbr08ST5AuRqs6VHpj2QZAKq04gCGfZRhpTySpFUgrtUJ1r m9XPF87u8Nn6PEQTWXc/oGm2z2z2evzZHIX16TNrrS4ZCM3ng0JXeU0xj4cmiRz8zbZqVEXaz4Se VhvZDdoDB1wZbjugWuichGl1KaX3kl X-QQ-XMRINFO: M/715EihBoGSf6IYSX1iLFg= From: Edward Adam Davis To: syzbot+d7521c1e3841ed075a42@syzkaller.appspotmail.com Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [virtualization?] KMSAN: uninit-value in virtqueue_add (4) Date: Fri, 26 Jan 2024 14:57:02 +0800 X-OQ-MSGID: <20240126065701.3238387-2-eadavis@qq.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <000000000000fd588e060de27ef4@google.com> References: <000000000000fd588e060de27ef4@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit please test uninit-value in virtqueue_add (4) #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c index 9d1bdcdc1331..4ca6627a7459 100644 --- a/drivers/scsi/virtio_scsi.c +++ b/drivers/scsi/virtio_scsi.c @@ -427,7 +427,7 @@ static int __virtscsi_add_cmd(struct virtqueue *vq, size_t req_size, size_t resp_size) { struct scsi_cmnd *sc = cmd->sc; - struct scatterlist *sgs[6], req, resp; + struct scatterlist *sgs[6], req = {}, resp = {}; struct sg_table *out, *in; unsigned out_num = 0, in_num = 0;