Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6398917rdb; Mon, 1 Jan 2024 23:38:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtngcAOGY7wbdS8JG96pLVxbENdRitjfzJoNdvIoTykDY8kQ8WjumQUvNGe3jIdYKKX/mj X-Received: by 2002:a05:6402:373:b0:556:a33:2a87 with SMTP id s19-20020a056402037300b005560a332a87mr2320020edw.77.1704181114707; Mon, 01 Jan 2024 23:38:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704181114; cv=none; d=google.com; s=arc-20160816; b=kh+ZgyRDkgMO7T2KXHEf277cr9WkNFjcJvrC+D/CES3oJS/yWZUNef1Pu0CCSIltnK EyKmeLmBhLu4tvOgP5XB5mznoka+cBFxXQUzWQhEtDAAy5Rdz+PRjtrZKsuoogjaD3eZ x1z+n+LGCN+k9BHvyb/V/hZb62STtClBoc0NqT6eX4jMU3bEQrZt/PaRMEhtRbR/dO/4 r0ecj4uBSRCnRV2JI/tckuWGKE3z2pV8DxdQPUxmOSlZM/WmhioCzZe7aAOVS9GdJSLS UrR8GBFqtwDLWGRtcu8XeP1gOo7tCDnfbrCs+cW+ihpQsFGqSFY0+unaeanYW1VUvkWv 1iMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=el8vPOGgwAF2an2KLr95NydshHh+8ikKQzj5kluS6RU=; fh=V9AeBafJgTW96HdC48wsxGAfd7Fe9P2uAL8tLCjpUN4=; b=xSYTojEQzeOnvVtia/yeBgxupcIUh/yCO5STTqpcjHEQRwIt/ypBk1s38QRaHtNji5 NrJeJyjPdtrCs8Vv7i3GK5MfP4u7j6q35rDgPq+miDFmFnDGCC5lf0K/LqrefluegSbC 7W8BEu2cf5qPFLVltPKPR9ost3QjQnH3woL1PFBjrMUdLiJh85Cd/MuDJ2A/vFT3og6Y ztWyuoeCpETyGpTVEErFIg+Emo2KiEPnxmRCy+clXU4Vw8I5jTgjNmbiiJ8P2XVmhvnx gDVoPibfcvQbquRQS9QfsPKr99o4dNE1MZbaqxy9qdOo2a5jtGalu2B1kon4W5nnhZTj ZVog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-14118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f10-20020a056402354a00b005536e351556si11465876edd.359.2024.01.01.23.38.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 23:38:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-14118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6F45C1F21E93 for ; Tue, 2 Jan 2024 07:38:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A28223AA; Tue, 2 Jan 2024 07:38:26 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87A0120F9 for ; Tue, 2 Jan 2024 07:38:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f198.google.com with SMTP id e9e14a558f8ab-35fe9fa7f4fso87339555ab.2 for ; Mon, 01 Jan 2024 23:38:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704181103; x=1704785903; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=el8vPOGgwAF2an2KLr95NydshHh+8ikKQzj5kluS6RU=; b=vJQHDkSQ5nKmgWGsgML9awcOwY5cr8xmF68ynZCIAOH14v/Bk8trGziqAfwznA+LxN y/7YxnkWfxCjzRmUlbX1AXNdHutCZtC8nRsGxIghf9h4vWwVJuCVfNwEU3nHolOJuDNy yuEvDyvlhtchoNhYbVMs2FCvcQSCl0G8revL2x1NrgCyexEGrBMW50OZFzV2eYOD1Qr+ yQvnVjMwrR3jzNZwocOXIGDT5UtSfhWeO/b7dqjFLImp2ocLWAvg3ZEJEgu8ZY4Wobd1 pyjfHzA8vNUOm9VkkPMCyT8dxg2OSPwqK+3BnsUU5hADhSsOtpc1v2lrLiJItGgBkBN1 QkCg== X-Gm-Message-State: AOJu0YzNiOdC9Dd9vfsl8y9fSx2q5H6N2G0Jg5UT5Cx+57T7CMnkBgFo dOLxDJTKoLvdUYlYOpA2R+Mp7uY9ZgM9w1YtWbI2DoBmWht7DzQ= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1d85:b0:35f:eae9:3f61 with SMTP id h5-20020a056e021d8500b0035feae93f61mr1864212ila.6.1704181103701; Mon, 01 Jan 2024 23:38:23 -0800 (PST) Date: Mon, 01 Jan 2024 23:38:23 -0800 In-Reply-To: <000000000000fd588e060de27ef4@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000051b61f060df1952d@google.com> Subject: Re: [syzbot] Re: [syzbot] [virtualization?] KMSAN: uninit-value in virtqueue_add (4) From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: Re: [syzbot] [virtualization?] KMSAN: uninit-value in virtqueue_add (4) Author: penguin-kernel@i-love.sakura.ne.jp #syz set subsystems: mm On 2024/01/01 22:38, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: fbafc3e621c3 Merge tag 'for_linus' of git://git.kernel.org.. > git tree: upstream > console+strace: https://syzkaller.appspot.com/x/log.txt?x=173df3e9e80000 > kernel config: https://syzkaller.appspot.com/x/.config?x=e0c7078a6b901aa3 > dashboard link: https://syzkaller.appspot.com/bug?extid=d7521c1e3841ed075a42 > compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1300b4a1e80000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=130b0379e80000 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/1520f7b6daa4/disk-fbafc3e6.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/8b490af009d5/vmlinux-fbafc3e6.xz > kernel image: https://storage.googleapis.com/syzbot-assets/202ca200f4a4/bzImage-fbafc3e6.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+d7521c1e3841ed075a42@syzkaller.appspotmail.com > > ===================================================== > BUG: KMSAN: uninit-value in vring_map_one_sg drivers/virtio/virtio_ring.c:380 [inline] > BUG: KMSAN: uninit-value in virtqueue_add_split drivers/virtio/virtio_ring.c:614 [inline] > BUG: KMSAN: uninit-value in virtqueue_add+0x21c6/0x6530 drivers/virtio/virtio_ring.c:2210 > vring_map_one_sg drivers/virtio/virtio_ring.c:380 [inline] > virtqueue_add_split drivers/virtio/virtio_ring.c:614 [inline] > virtqueue_add+0x21c6/0x6530 drivers/virtio/virtio_ring.c:2210 > virtqueue_add_sgs+0x186/0x1a0 drivers/virtio/virtio_ring.c:2244 > __virtscsi_add_cmd drivers/scsi/virtio_scsi.c:467 [inline] > virtscsi_add_cmd+0x838/0xad0 drivers/scsi/virtio_scsi.c:501 > virtscsi_queuecommand+0x896/0xa60 drivers/scsi/virtio_scsi.c:598 > scsi_dispatch_cmd drivers/scsi/scsi_lib.c:1516 [inline] > scsi_queue_rq+0x4874/0x5790 drivers/scsi/scsi_lib.c:1758 > blk_mq_dispatch_rq_list+0x13f8/0x3600 block/blk-mq.c:2049 > __blk_mq_do_dispatch_sched block/blk-mq-sched.c:170 [inline] > blk_mq_do_dispatch_sched block/blk-mq-sched.c:184 [inline] > __blk_mq_sched_dispatch_requests+0x10af/0x2500 block/blk-mq-sched.c:309 > blk_mq_sched_dispatch_requests+0x160/0x2d0 block/blk-mq-sched.c:333 > blk_mq_run_work_fn+0xd0/0x280 block/blk-mq.c:2434 > process_one_work kernel/workqueue.c:2627 [inline] > process_scheduled_works+0x104e/0x1e70 kernel/workqueue.c:2700 > worker_thread+0xf45/0x1490 kernel/workqueue.c:2781 > kthread+0x3ed/0x540 kernel/kthread.c:388 > ret_from_fork+0x66/0x80 arch/x86/kernel/process.c:147 > ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 > > Uninit was created at: > __alloc_pages+0x9a4/0xe00 mm/page_alloc.c:4591 > alloc_pages_mpol+0x62b/0x9d0 mm/mempolicy.c:2133 > alloc_pages mm/mempolicy.c:2204 [inline] > folio_alloc+0x1da/0x380 mm/mempolicy.c:2211 > filemap_alloc_folio+0xa5/0x430 mm/filemap.c:974 > __filemap_get_folio+0xa5a/0x1760 mm/filemap.c:1918 > ext4_da_write_begin+0x7f8/0xec0 fs/ext4/inode.c:2891 > generic_perform_write+0x3f5/0xc40 mm/filemap.c:3918 > ext4_buffered_write_iter+0x564/0xaa0 fs/ext4/file.c:299 > ext4_file_write_iter+0x20f/0x3460 > __kernel_write_iter+0x329/0x930 fs/read_write.c:517 > dump_emit_page fs/coredump.c:888 [inline] > dump_user_range+0x593/0xcd0 fs/coredump.c:915 > elf_core_dump+0x528d/0x5a40 fs/binfmt_elf.c:2077 > do_coredump+0x32c9/0x4920 fs/coredump.c:764 > get_signal+0x2185/0x2d10 kernel/signal.c:2890 > arch_do_signal_or_restart+0x53/0xca0 arch/x86/kernel/signal.c:309 > exit_to_user_mode_loop+0xe8/0x320 kernel/entry/common.c:168 > exit_to_user_mode_prepare+0x163/0x220 kernel/entry/common.c:204 > irqentry_exit_to_user_mode+0xd/0x30 kernel/entry/common.c:309 > irqentry_exit+0x16/0x40 kernel/entry/common.c:412 > exc_page_fault+0x246/0x6f0 arch/x86/mm/fault.c:1564 > asm_exc_page_fault+0x2b/0x30 arch/x86/include/asm/idtentry.h:570 > > Bytes 0-4095 of 4096 are uninitialized > Memory access of size 4096 starts at ffff88812c79c000 > > CPU: 0 PID: 997 Comm: kworker/0:1H Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 > Workqueue: kblockd blk_mq_run_work_fn > =====================================================