Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp997824rdh; Fri, 27 Oct 2023 01:26:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/QDopPPlZkKJyU8YMu0zKJLbrRui4an4uBRbVAbJ21o+7YcyhqQciwyc/DrOywmoFcw2H X-Received: by 2002:a67:ae0e:0:b0:457:f8e7:bb3f with SMTP id x14-20020a67ae0e000000b00457f8e7bb3fmr2037027vse.29.1698395211595; Fri, 27 Oct 2023 01:26:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698395211; cv=none; d=google.com; s=arc-20160816; b=uHBXbJW2ximkzAO2stAEuftSyjWsSxnN4s0NX7nXYVmoRUFwDBd+0+x2RrB7QanL0N /KfUSp/39Ia7QGB0yM58DRd+jrIOaDyVB87jSyID1R+TEBhqFVMJl8i+KIpb8JLCM4yY SfHFMNwoaRPowpJQc5sLiBz4k95jWHp9AvMr0szJKdIT6hSijkUK9egJ3t3CfzjYJWTo UNs51nxuE+An80qfYo8iTFxM6rsbxXnHuBG7t5HJxBFwXpYbYW3SN/+JfjNuYWgXx/JL er+4RsjR6tfNkvI7Z4/t1TXh+QE6hLguNK/1iozPhCzbRU3bBwrUqbBKmpw4SAXj0ZFh aRvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/sRPbObTy+hr2BTc4OunFroR638IOm6pKQx0eqZEmBc=; fh=U8CieabCaEmdKOd52UOIGBYdJ87zT5wHkuha5VasOfM=; b=D8fGJITxdFjppP4LhcBoAAqLGXRPtus4/GS5k3NtuWIgdCxqFS64iGtHd24h/QfBCy 1OW/SOe9cruOWn+PQlJvDhyiqvr6g8WSXVbAFsQlY8lvwFVCFCy++E9qrp1naDZo+aUQ 0qBayLSuPJaZdn5yHl6GhzugVY6Iwh5eUvlVpsKf3M9xCTe2Pyc9scL1UBRbXOL66qKt WXNc+MMP0zHBh88ebyCTwMlCtg1njU/EOB0QlcZWFQjS0sRR7YwOmrci54AiVmBOpB19 mSslspUDLeHY7zC29kwMalfB/L+ueifAN7EYf8vM1kjRaOhZlVHg4TamqPFE63xyFiJu MlZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TPFJAgaQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id h193-20020a2553ca000000b00d9ba3ca7f15si1949214ybb.172.2023.10.27.01.26.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 01:26:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TPFJAgaQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id BF45580D1EF8; Fri, 27 Oct 2023 01:26:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235139AbjJ0IZx (ORCPT + 99 others); Fri, 27 Oct 2023 04:25:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234901AbjJ0IZv (ORCPT ); Fri, 27 Oct 2023 04:25:51 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DBF91AC for ; Fri, 27 Oct 2023 01:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698395102; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/sRPbObTy+hr2BTc4OunFroR638IOm6pKQx0eqZEmBc=; b=TPFJAgaQHAuCsv0HevVH7CRjqcA0NUhU/KP0HgRQNqMgb797qxJO9V+XG4a0Lhq6FNP4FE UPE1jg/dugDwXgMeibNmvDmP5WaYbfpPjdmyJ8PYoiZ69O4Ge6nSWv0KWxyK0m5n5+lFly 9sHV5fqVYjtyooPHXCpfHbxaG7Zcmpc= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-128-s9AdzOEHOZ-avfD-Ha4sMg-1; Fri, 27 Oct 2023 04:25:01 -0400 X-MC-Unique: s9AdzOEHOZ-avfD-Ha4sMg-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-408f9cee5e8so14112465e9.0 for ; Fri, 27 Oct 2023 01:25:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698395100; x=1698999900; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/sRPbObTy+hr2BTc4OunFroR638IOm6pKQx0eqZEmBc=; b=JDg1kOpOy4djBX3Y7znKtIYm17bXqhee2KqBreLuBN0OhNeQarvRzNXZY2Z6EHUovR WBLz2d9RwdhYjmE/axICbNtWOrcfyBJYzgBXV/CTKpAcjSjfIQc6OyITfeaMJyiVRX3I fBOKGmDtvj8donrLln3Qb2WZFAK3rr4joqZfY2d7kDAaZJyJf6SCpFAH3/wreycq0ncD pg4r+QP78oEKEXT8MNlPiHVopTUVRtil14LPzJ+1ois06gXc6eXF5s6QJBFtVOEZHOSe xG5myguiAlYlVfpeCQjjjeerCUhJUahQpg+849KB0TbDdT3KKP6T2JpXRObJ7PlmJvj7 4Aww== X-Gm-Message-State: AOJu0YygoPHRDR8N7BujZvMLSBoXJfPRsV2f/Nb2aKu9Uw3lY77J7Itm MIyHdBQHGnTg7emz2/HiZKqUzu5ljxgwJY/iKxi220tCeuNcy0pwNyKKQXGwESmRRnUbCj/ScPn J5Xh6tZcu2fwNNB2xJ5FS5O39 X-Received: by 2002:a05:600c:3b8f:b0:3f6:9634:c8d6 with SMTP id n15-20020a05600c3b8f00b003f69634c8d6mr1735086wms.18.1698395100029; Fri, 27 Oct 2023 01:25:00 -0700 (PDT) X-Received: by 2002:a05:600c:3b8f:b0:3f6:9634:c8d6 with SMTP id n15-20020a05600c3b8f00b003f69634c8d6mr1735069wms.18.1698395099613; Fri, 27 Oct 2023 01:24:59 -0700 (PDT) Received: from sgarzare-redhat (host-87-12-185-56.business.telecomitalia.it. [87.12.185.56]) by smtp.gmail.com with ESMTPSA id l12-20020adfe9cc000000b0032dba85ea1bsm1221968wrn.75.2023.10.27.01.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 01:24:59 -0700 (PDT) Date: Fri, 27 Oct 2023 10:24:54 +0200 From: Stefano Garzarella To: syzbot Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, stefanha@redhat.com, syzkaller-bugs@googlegroups.com, virtualization@lists.linux-foundation.org, syoshida@redhat.com Subject: Re: [syzbot] [net?] KMSAN: uninit-value in virtio_transport_recv_pkt Message-ID: References: <00000000000008b2940608ae3ce9@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <00000000000008b2940608ae3ce9@google.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 27 Oct 2023 01:26:05 -0700 (PDT) On Fri, Oct 27, 2023 at 01:11:24AM -0700, syzbot wrote: >Hello, > >syzbot found the following issue on: > >HEAD commit: d90b0276af8f Merge tag 'hardening-v6.6-rc3' of git://git.k.. >git tree: upstream >console+strace: https://syzkaller.appspot.com/x/log.txt?x=102c8b22680000 >kernel config: https://syzkaller.appspot.com/x/.config?x=6f1a4029b69273f3 >dashboard link: https://syzkaller.appspot.com/bug?extid=0c8ce1da0ac31abbadcd >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=101e58ec680000 >C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17f7adb6680000 > >Downloadable assets: >disk image: https://storage.googleapis.com/syzbot-assets/83ae10beee39/disk-d90b0276.raw.xz >vmlinux: https://storage.googleapis.com/syzbot-assets/c231992300f6/vmlinux-d90b0276.xz >kernel image: https://storage.googleapis.com/syzbot-assets/6377c9c2ea97/bzImage-d90b0276.xz > >IMPORTANT: if you fix the issue, please add the following tag to the commit: >Reported-by: syzbot+0c8ce1da0ac31abbadcd@syzkaller.appspotmail.com > >===================================================== >BUG: KMSAN: uninit-value in virtio_transport_recv_pkt+0x1c42/0x2580 net/vmw_vsock/virtio_transport_common.c:1421 > virtio_transport_recv_pkt+0x1c42/0x2580 net/vmw_vsock/virtio_transport_common.c:1421 > vsock_loopback_work+0x3e2/0x5d0 net/vmw_vsock/vsock_loopback.c:120 > process_one_work kernel/workqueue.c:2630 [inline] > process_scheduled_works+0x104e/0x1e70 kernel/workqueue.c:2703 > worker_thread+0xf45/0x1490 kernel/workqueue.c:2784 > kthread+0x3e8/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:304 > >Uninit was stored to memory at: > virtio_transport_space_update net/vmw_vsock/virtio_transport_common.c:1274 [inline] > virtio_transport_recv_pkt+0x1ea4/0x2580 net/vmw_vsock/virtio_transport_common.c:1415 > vsock_loopback_work+0x3e2/0x5d0 net/vmw_vsock/vsock_loopback.c:120 > process_one_work kernel/workqueue.c:2630 [inline] > process_scheduled_works+0x104e/0x1e70 kernel/workqueue.c:2703 > worker_thread+0xf45/0x1490 kernel/workqueue.c:2784 > kthread+0x3e8/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:304 > >Uninit was created at: > slab_post_alloc_hook+0x12f/0xb70 mm/slab.h:767 > slab_alloc_node mm/slub.c:3478 [inline] > kmem_cache_alloc_node+0x577/0xa80 mm/slub.c:3523 > kmalloc_reserve+0x13d/0x4a0 net/core/skbuff.c:559 > __alloc_skb+0x318/0x740 net/core/skbuff.c:650 > alloc_skb include/linux/skbuff.h:1286 [inline] > virtio_vsock_alloc_skb include/linux/virtio_vsock.h:66 [inline] > virtio_transport_alloc_skb+0x8b/0x1170 net/vmw_vsock/virtio_transport_common.c:58 > virtio_transport_reset_no_sock net/vmw_vsock/virtio_transport_common.c:957 [inline] > virtio_transport_recv_pkt+0x1531/0x2580 net/vmw_vsock/virtio_transport_common.c:1387 > vsock_loopback_work+0x3e2/0x5d0 net/vmw_vsock/vsock_loopback.c:120 > process_one_work kernel/workqueue.c:2630 [inline] > process_scheduled_works+0x104e/0x1e70 kernel/workqueue.c:2703 > worker_thread+0xf45/0x1490 kernel/workqueue.c:2784 > kthread+0x3e8/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:304 > >CPU: 0 PID: 8 Comm: kworker/0:0 Not tainted 6.6.0-rc2-syzkaller-00337-gd90b0276af8f #0 >Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 >Workqueue: vsock-loopback vsock_loopback_work >===================================================== > Shigeru Yoshida already posted a patch here: https://lore.kernel.org/netdev/20231026150154.3536433-1-syoshida@redhat.com/