Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1013839rdh; Fri, 27 Oct 2023 02:03:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfY0E4BO2DqfjpGJceAwZpEGeEINq2/jLk/AhSntqdjEDtC6TyUyYOLBA5XEBtPCqLh3Pc X-Received: by 2002:a05:6871:5c4d:b0:1e9:9aa6:eeca with SMTP id os13-20020a0568715c4d00b001e99aa6eecamr3039938oac.1.1698397340355; Fri, 27 Oct 2023 02:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698397340; cv=none; d=google.com; s=arc-20160816; b=KrZyxdA0Q/9MbckNw8uO//7urnYwDqPVjAqcBQExiqVzhqKHhTsHDFyH5IwkbrMl9+ oqd+JH1lA3BrNNjBU2zfkVkGa0fLrIXfMGkRRnF4WjzS+7zh07kcIZSekJL8gBkIArJa naoDps6SDUSvFTz2eZkdyPA8hGi/RrG4J2NbntK2cLb7q8B6BVy7ugkzUy1gbZ6b3PuV lbtEHa2wSQBrGmRxvpcThCEviJ4GqEaVXIxOsvwNhrgAXHTZTNcpxw8H/uCgEfhuJHdS e5NpjkGs4tCiXyTdWS9w1lZ07YhOUwwxUTyUgoxIOiUzGMNaAboiw5nR6tXHLNnGKmYn 2MNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=eopWR7hzxdYBX0Qk2wgiI2DI9yTPwgIf0SgwKfaDrAM=; fh=c4u7j2Gl7IXBhG9sacAJ1RXyP02qFwB3l3l+++B+v2M=; b=atd77yVGSvC3Ef++twwevXhNNmyvxPsjhxofPb3W6xVOXUVoH7j+8XTH2cC724M7jW 3ciN3WoZ9rNAENBfUoIBm7J/0xsCJ/Cg2qlQz1Ha1WIzfcDyqm1CwSTRRADgYzGaNDma UOl63n7548JDu/KMGfxAi13SqfeCjqWiceu9tO0fjs7Eqhea3ycfTTXA2lHFXgHB+t1h NtHvnWJb5TqOt71CT4c7y4YGvYHuNOo4REnAQgey1UUYldbH/U6nx01lrkB/rBUZSdsv YPv01rxgsp+307k1pF84aQNL8qedRE65B1ZjeB9DYzmCPkn/KLDaaST0ogOa+xRnYBG3 5Cuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Ir0gjaC9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x9-20020a817c09000000b0059eb9ecffc2si1858291ywc.415.2023.10.27.02.02.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 02:02:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Ir0gjaC9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4370182AB461; Fri, 27 Oct 2023 02:02:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231233AbjJ0JB7 (ORCPT + 99 others); Fri, 27 Oct 2023 05:01:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345719AbjJ0Is4 (ORCPT ); Fri, 27 Oct 2023 04:48:56 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AE00D42 for ; Fri, 27 Oct 2023 01:48:52 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-53eeb28e8e5so7323a12.1 for ; Fri, 27 Oct 2023 01:48:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698396531; x=1699001331; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eopWR7hzxdYBX0Qk2wgiI2DI9yTPwgIf0SgwKfaDrAM=; b=Ir0gjaC9LkbX2aKMdNsmbS+ZmhKqXO0fF/TcYpIVbMLwWbEuHznZzvSw/jb6yppn9r 3QWLUJRBYQdygmY4XtEviFlNOlRinqYCIckDNDNNPzETYBuyzQejTkPv/4N4M5D0EOIX D5iv+XWysfWSRpJDzuyGoLhlnNci6bkveuw1pPgz+HOXgGRysoY0+ClajfHoDIE9Jsm7 XXdmlynOpds8dp522TD5k56YnWgyKzT4sU5gzq5E3MZhMwLT6SREN7Uv5wSkW/dsaEGO WMN/02UWQIkZgX39qx7amPMJNmNeWQU951x2Cw1dnz+4UH6BrXYItOJqm8gEzEZdd12u tXjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698396531; x=1699001331; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eopWR7hzxdYBX0Qk2wgiI2DI9yTPwgIf0SgwKfaDrAM=; b=m59sMS8RW+gdjy/6SsfKxcIuY4HPARYYIRo3uKasJZfRnB1Hxlgy/EzeWehBP4gRfX SvrTebm0IZFsfx96vvB18j1LdukIZwUKHZMkkjG6mkmru7i2qOnFo0fezGA3a9c6xqfo U6TFtLPRXSBIUHinA7wJg7vAgNPRZHkk7Uzv20T3FBGu05O6ApO+K+YoWDqLoP+QwxfV ORKr4puI3oX+YPfS/cbvrSXn0tWAp8lDek6ovdXzYPwtt6fqSS9LPteA+P0xndP2UZ00 73D/+jW64Y6nvudK/MJGPl6HdurMzKKn8KVLYr9g137+LLDsfDuqOsdbBAwq9XUWkCw2 XyCg== X-Gm-Message-State: AOJu0Yx6OztVUB8DDtRfbnkdlmFAuLRstITfi7dmexHV8E9S5b1DmN01 gUEZsuz5PV3B8NPbIo6dVLNV1HUNHT0q7IC2jBZeZA== X-Received: by 2002:a50:cc88:0:b0:540:e63d:3cfb with SMTP id q8-20020a50cc88000000b00540e63d3cfbmr54276edi.3.1698396530554; Fri, 27 Oct 2023 01:48:50 -0700 (PDT) MIME-Version: 1.0 References: <00000000000008b2940608ae3ce9@google.com> In-Reply-To: From: Eric Dumazet Date: Fri, 27 Oct 2023 10:48:39 +0200 Message-ID: Subject: Re: [syzbot] [net?] KMSAN: uninit-value in virtio_transport_recv_pkt To: Stefano Garzarella 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 27 Oct 2023 02:02:05 -0700 (PDT) On Fri, Oct 27, 2023 at 10:25=E2=80=AFAM 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=3D102c8b226800= 00 > >kernel config: https://syzkaller.appspot.com/x/.config?x=3D6f1a4029b692= 73f3 > >dashboard link: https://syzkaller.appspot.com/bug?extid=3D0c8ce1da0ac31a= bbadcd > >compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for De= bian) 2.40 > >syz repro: https://syzkaller.appspot.com/x/repro.syz?x=3D101e58ec68= 0000 > >C reproducer: https://syzkaller.appspot.com/x/repro.c?x=3D17f7adb66800= 00 > > > >Downloadable assets: > >disk image: https://storage.googleapis.com/syzbot-assets/83ae10beee39/di= sk-d90b0276.raw.xz > >vmlinux: https://storage.googleapis.com/syzbot-assets/c231992300f6/vmlin= ux-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 com= mit: > >Reported-by: syzbot+0c8ce1da0ac31abbadcd@syzkaller.appspotmail.com > > > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > >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:1= 274 [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_c= ommon.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-gd= 90b0276af8f #0 > >Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS = Google 08/04/2023 > >Workqueue: vsock-loopback vsock_loopback_work > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > > > > Shigeru Yoshida already posted a patch here: > > https://lore.kernel.org/netdev/20231026150154.3536433-1-syoshida@redhat.c= om/ Sure thing, this is why I released this syzbot report from my queue.