Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1047471rdh; Fri, 27 Oct 2023 03:17:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH1fOaKclHGGMDEaK7WYF7f11u/0QS0Hgs3L9Mk58wbJGfE3B/3KTVajfpEIGp8gEgtoKxs X-Received: by 2002:a25:cb97:0:b0:d9a:ede4:7126 with SMTP id b145-20020a25cb97000000b00d9aede47126mr2005970ybg.44.1698401860797; Fri, 27 Oct 2023 03:17:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698401860; cv=none; d=google.com; s=arc-20160816; b=Abm1QTwSAD//7G4IYqsmRMdZ1xOD09L3fqAPK6iHz3PZPNX7fT2v0o/W4BO2K6jCjL 4Jm9wxVh+kbixdMMaeh8HLX24Trotmt/eK+YGW6ZXdNgnfATAy1slO+5HwE9k5BiI5Z9 QVtaoxUg2BDTSZYqPX/BgotNHaRvU+bWHiaYfYqwhQFenxxEb45xjw0MZAJ+pxnxTqsb 36CW6mA4qe2RoOOAMRUJSzolj7SjmCNXPL9lhBA7ikLOj9yzXZw+QXPsjeVb6z+AikGf Kf1TLz/kgeVmlrcHAolxqn2ipTwRyOmshl94JNTTpNbFf5+axE0bA0XzZmCPgn1DvBcy Jckw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/3RUe/42QKtvFOMbEd083sCtycO90wm6iZz1XgOvH0k=; fh=lZWDGas7u1ask4s3hWpeQRZzbu5j8LI5jbCTb5Ooov8=; b=lFMldbxqY3ENsvSA2eRo1l1QkY2/HHTEJSNjq+a9dti4Jigc43L/s39BPM70j0ZG/V mvXzSIMA+loi3FGgVBBChNbUmNQufP+ZO0oqSvyhiKpkr+UaWWFowLInIfoCF35560qC UHE5lOY7VB7PkoJrwg8lxASMJVTO7gJre1m8Mxg+m/BtVC+iTzSalaOryBrkVIfZxJuQ 5iYMLwZ8k468l5MieEu2ES9qtCUoMgX1Vi2KuOIUEl8L5O1AXL8Av0Cs+B5CcmltzXpZ F6RiF1yOKLRGFI2otzsaUuTSRh/2dK4NfmfckUfms4VrQcNjTPyxR0RLvWGTxgkUcGQk ntkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CQ2cWcnb; 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 r10-20020a25440a000000b00da04b275afasi1891443yba.156.2023.10.27.03.17.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 03:17:40 -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=CQ2cWcnb; 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 2F36E803F63A; Fri, 27 Oct 2023 03:16:50 -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 S1345691AbjJ0KQT (ORCPT + 99 others); Fri, 27 Oct 2023 06:16:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231499AbjJ0KQR (ORCPT ); Fri, 27 Oct 2023 06:16:17 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 565ADC4 for ; Fri, 27 Oct 2023 03:15:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698401733; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/3RUe/42QKtvFOMbEd083sCtycO90wm6iZz1XgOvH0k=; b=CQ2cWcnb4RRtqcAvgjETRzgp9BX6TAs94TmhTIOykcaQa3u8whvFFo2qiDrtr/RMq1Up76 NCbIjiFYj4itn+ogdX5mOWS8I19uokIlaorGWvGGvkg0cjlC9myNNya76BzrEYPGtealSD NZ1MgMq3+HqRLQy0AmAk5t1ChX3bjSQ= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-557-kZq6ImMJMyOaAPJSSkBt7Q-1; Fri, 27 Oct 2023 06:15:32 -0400 X-MC-Unique: kZq6ImMJMyOaAPJSSkBt7Q-1 Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-41cba6d1330so23432231cf.1 for ; Fri, 27 Oct 2023 03:15:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698401732; x=1699006532; h=in-reply-to:content-transfer-encoding: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=/3RUe/42QKtvFOMbEd083sCtycO90wm6iZz1XgOvH0k=; b=E6qS7O56Zie4nsLV0Qf66EA4sPA8W1akWCVbBTung6JGS5nLghN3cgitOuA3uIHntD uAVahJGjCqnzHIJTLsCpUh3QWTETaAm8ZvbDKh2DrkblzCTwZ0Ada32U/K1LA/BMw5ac 5MEw3Alqo5YztAhs1IaR0LPkI6zAGdU495likhUDX0r//RuNdwoUIVZVFjvza1Wokjp3 1pxTp+KS7fzBXHI+98v7s+IEluWD2kUAEEAVBwXUo8GJ1lBxCvafrTU5Ct9ZBY+W/3Cy 50eO4izPwCMoIma2tkbGNkUNacuTFRvnSRDCMSf2J3tXp+77c4nEnKn6OWQlx+jaO2bD esFQ== X-Gm-Message-State: AOJu0YwP9xWaZ4YTSSWY9KtEzvVwK/CH4w010uA1ZqHaV1W1sPGHza3h et4vOzol4Hp5HMLMPKoKwX92X+ZobL7hlOQqoZo3Vf9N3i+GckXgIaKWhbALGyiLTiUZmHy6ZES 0xR/Yj0/Nfgkf7L7kVvMm1JSQ X-Received: by 2002:ac8:5d07:0:b0:418:1235:5c86 with SMTP id f7-20020ac85d07000000b0041812355c86mr2910758qtx.43.1698401731794; Fri, 27 Oct 2023 03:15:31 -0700 (PDT) X-Received: by 2002:ac8:5d07:0:b0:418:1235:5c86 with SMTP id f7-20020ac85d07000000b0041812355c86mr2910723qtx.43.1698401731427; Fri, 27 Oct 2023 03:15:31 -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 g21-20020ac85815000000b00418122186ccsm460002qtg.12.2023.10.27.03.15.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 03:15:31 -0700 (PDT) Date: Fri, 27 Oct 2023 12:15:25 +0200 From: Stefano Garzarella To: Eric Dumazet Cc: syzbot , davem@davemloft.net, 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: <6pljp7toxsxk4ljnggvn44djqzbi2g3bfou5snhugdrbabu7wv@fpueaouu26ly> References: <00000000000008b2940608ae3ce9@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 03:16:50 -0700 (PDT) On Fri, Oct 27, 2023 at 10:48:39AM +0200, Eric Dumazet wrote: >On Fri, Oct 27, 2023 at 10:25 AM Stefano Garzarella wrote: >> >> 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/ > >Sure thing, this is why I released this syzbot report from my queue. > Thanks for that ;-) Stefano