Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1155171rwb; Sat, 13 Aug 2022 18:54:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR7D5Bq5aVZ1nO3bHiEZKlnrykgJ5ChkFlBrQPYthX+SPBsqZbLQmjxAcOqUy2I6IU5htIiA X-Received: by 2002:a05:6402:84d:b0:435:a764:9aad with SMTP id b13-20020a056402084d00b00435a7649aadmr9778257edz.332.1660442080053; Sat, 13 Aug 2022 18:54:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660442080; cv=none; d=google.com; s=arc-20160816; b=Nbq8WA1Eg4yBvec2Qk2+67fNOQXshwKWr1m8MfKmBmAAnFeAgWaEiP5Gjmx8SxF+xn 4qEfP7MDk55DgWQLTdONETuiLaAMpphn2TIgakMCw24lDEkJqzr7Odz02iul0Q2xXzAv p1wBHmu9mvcfRZoQwfhncIpVuT3EG4kJ9yym8u02FcVKRJOwBqCtbtBjaBqVFvmqmdGK MJ9LKEDMlbVX2czWnKw6JjXAtkWb8GAEH0Do3R5IygF5H2QXq3uo0P3cV3i+fmpi6mAb Va2/57UyiQGC9YhivGFfqdsoYGRCRw8zmIGB1O+MP4U4mazwdyN+AmAbzOq5Bqyy70nT ruiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:cc:to:from:date:subject :message-id; bh=NOWrvI0pDAVxieGCs/m9NJevZh2f1lWcAGajZfQANec=; b=MJT7gePx4KDaRAjNFoDByxNgFlwKysT3SSlnDx4Soz68hUWf/ZO40XadmO2YAG02VC ynT9iL0I09mLxqYPQd9x1mqBdMrBBzYv4mLB5THGboxiVV0eKbFaW2bFOCb+keRhijcV fIKWicnu87FfuVqRh4Gnac5vtA1r2dyiWz2stGBuDLWS0MRgSLXN9NOKWctjpdQ/o6X2 qXgN6VRbDtXbroSev5c0xD7sjBbuzlhPbQDX1xcIc+tFega5LzYOhqP7SvCGDBpx7Vgn yMvkwQ3OW+HMjFEZI4p8XGLASQ+m2wHGPQ8IZsfH4VP1zPNGh4fJQijUe1hgkiw3m5s2 SzIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o24-20020a1709064f9800b00732f74749ccsi3906469eju.581.2022.08.13.18.54.12; Sat, 13 Aug 2022 18:54:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230058AbiHNBxB (ORCPT + 99 others); Sat, 13 Aug 2022 21:53:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiHNBw7 (ORCPT ); Sat, 13 Aug 2022 21:52:59 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 331E645041; Sat, 13 Aug 2022 18:52:55 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=xuanzhuo@linux.alibaba.com;NM=1;PH=DS;RN=33;SR=0;TI=SMTPD_---0VM8IVha_1660441967; Received: from localhost(mailfrom:xuanzhuo@linux.alibaba.com fp:SMTPD_---0VM8IVha_1660441967) by smtp.aliyun-inc.com; Sun, 14 Aug 2022 09:52:48 +0800 Message-ID: <1660441835.6907768-1-xuanzhuo@linux.alibaba.com> Subject: Re: [GIT PULL] virtio: fatures, fixes Date: Sun, 14 Aug 2022 09:50:35 +0800 From: Xuan Zhuo To: Andres Freund Cc: Linus Torvalds , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alvaro.karsz@solid-run.com, colin.i.king@gmail.com, colin.king@intel.com, dan.carpenter@oracle.com, david@redhat.com, elic@nvidia.com, eperezma@redhat.com, gautam.dawar@xilinx.com, gshan@redhat.com, hdegoede@redhat.com, hulkci@huawei.com, jasowang@redhat.com, jiaming@nfschina.com, kangjie.xu@linux.alibaba.com, lingshan.zhu@intel.com, liubo03@inspur.com, michael.christie@oracle.com, pankaj.gupta@amd.com, peng.fan@nxp.com, quic_mingxue@quicinc.com, robin.murphy@arm.com, sgarzare@redhat.com, suwan.kim027@gmail.com, syoshida@redhat.com, xieyongji@bytedance.com, xuqiang36@huawei.com, "Michael S. Tsirkin" References: <20220812114250-mutt-send-email-mst@kernel.org> <20220814004522.33ecrwkmol3uz7aq@awork3.anarazel.de> In-Reply-To: <20220814004522.33ecrwkmol3uz7aq@awork3.anarazel.de> X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,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 On Sat, 13 Aug 2022 17:45:22 -0700, Andres Freund wrote: > Hi, > > On 2022-08-12 11:42:50 -0400, Michael S. Tsirkin wrote: > > The following changes since commit 3d7cb6b04c3f3115719235cc6866b10326de34cd: > > > > Linux 5.19 (2022-07-31 14:03:01 -0700) > > > > are available in the Git repository at: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus > > > > for you to fetch changes up to 93e530d2a1c4c0fcce45e01ae6c5c6287a08d3e3: > > > > vdpa/mlx5: Fix possible uninitialized return value (2022-08-11 10:00:36 -0400) > > ---------------------------------------------------------------- > > virtio: fatures, fixes > > > > A huge patchset supporting vq resize using the > > new vq reset capability. > > Features, fixes, cleanups all over the place. > > > > Signed-off-by: Michael S. Tsirkin > > > > ---------------------------------------------------------------- > > I have a script [1] that daily builds google cloud VM images with a fresh vanilla > kernel for postgres CI testing. The last successful image creation was > 7ebfc85e2cd7b08f518b526173e9a33b56b3913b > and the first failing was > 69dac8e431af26173ca0a1ebc87054e01c585bcc > > Since then creating a new kernel boots but network does not come up. > > Looking at the merges between those commit makes me suspect this merge: > > 69dac8e431af Merge tag 'riscv-for-linus-5.20-mw2' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux > 6c833c0581f1 Merge tag 'devicetree-fixes-for-6.0-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux > 3d076fec5a0c Merge tag 'rtc-6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux > 4a9350597aff Merge tag 'sound-fix-6.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound > 7a53e17accce Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost > 999324f58c41 Merge tag 'loongarch-5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson > f7cdaeeab8ca Merge tag 'for-v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply > d16b418fac3d Merge tag 'vfio-v6.0-rc1pt2' of https://github.com/awilliam/linux-vfio > 9801002f76c6 perf: riscv_pmu{,_sbi}: Miscallenous improvement & fixes > c3adefb5baf3 Merge tag 'for-6.0/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm > 7ce2aa6d7fe1 Merge tag 'drm-next-2022-08-12-1' of git://anongit.freedesktop.org/drm/drm > 7ab52f75a9cf RISC-V: Add Sstc extension support > 36fa1cb56ac5 Merge tag 'drm-misc-next-fixes-2022-08-10' of git://anongit.freedesktop.org/drm/drm-misc into drm-next > da06cc5bb600 RISC-V: fixups to work with crash tool > 6de9eb21cd36 Merge 'irq/loongarch', 'pci/ctrl/loongson' and 'pci/header-cleanup-immutable' > 3aefb2ee5bdd riscv: implement Zicbom-based CMO instructions + the t-head variant > 8f2f74b4b6e6 RISC-V: Canaan devicetree fixes > f94ba7039fb4 Merge tag 'at91-reset-sama7g5-signed' into psy-next > > all the drivers/net changes in that commit range were part of this pull > request. > > > excerpt from serial log for debian sid kernel (sorry for the interspersed logs): > > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 cloud-ifupdown-helper: Generated configuration for ens4 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 kern[ OK ] Finished Raise network interfaces. > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 systemd[1]: Found device Virtio network device. > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 systemd[1]: Commit a transient machine-id on disk was skipped because of a failed condition check (ConditionPathIsMountPoint[ OK ] Reached target Network. > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 systemd[1]: Started ifup for ens4. > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 kernel: [ 0.354044] x86: [ OK ] Reached target Network is Online. > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 dhclient[354]: Internet Systems Consortium DHCP Client 4.4.3 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 sh[354]: Internet Systems Consortium DHCP Client 4.4.3 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 sh[354]: Copyright 2004-2022 Internet Systems Consortium. > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 sh[354]: For info, please visit https://www.isc.org/software/dhcp/ > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 dhclient[354]: Copyright 2004-2022 Internet Systems Consortium. > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 dhclient[354]: For info, please visit https://www.isc.org/software/dhcp/ > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 systemd[1]: Starting Raise network interfaces... > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 ifup[356]: ifup: waiting for lock on /run/network/ifstate.ens4 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 dhclient[354]: Listening on LPF/ens4/42:01:0a:a8:00:07 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 sh[354]: Listening on LPF/ens4/42:01:0a:a8:00:07 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 sh[354]: Sending on LPF/ens4/42:01:0a:a8:00:07 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 dhclient[354]: Sending on LPF/ens4/42:01:0a:a8:00:07 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 sh[354]: DHCPDISCOVER on ens4 to 255.255.255.255 port 67 interval 7 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 kernel: [ 0.400657] NET: Registered PF_NETLINK/PF_ROUTE protocol family > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 dhclient[354]: DHCPDISCOVER on ens4 to 255.255.255.255 port 67 interval 7 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 kernel: [ 0.408289] audit: initializing netlink subsys (disabled) > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 dhclient[354]: DHCPOFFER of 10.168.0.7 from 169.254.169.254 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 sh[354]: DHCPOFFER of 10.168.0.7 from 169.254.169.254 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 sh[354]: DHCPREQUEST for 10.168.0.7 on ens4 to 255.255.255.255 port 67 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 dhclient[354]: DHCPREQUEST for 10.168.0.7 on ens4 to 255.255.255.255 port 67 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 dhclient[354]: DHCPACK of 10.168.0.7 from 169.254.169.254 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 sh[354]: DHCPACK of 10.168.0.7 from 169.254.169.254 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 kernel: [ 0.549954] NetLabel: Initializing > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 kernel: [ 0.550736] NetLabel: domain hash size = 128 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 kernel: [ 0.551480] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 kernel: [ 0.552303] NetLabel: unlabeled traffic allowed by default > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 kernel: [ 0.570445] NET: Registered PF_INET protocol family > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 kernel: [ 0.586842] NET: Registered PF_UNIX/PF_LOCAL protocol family > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 kernel: [ 0.587916] NET: Registered PF_XDP protocol family > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 kernel: [ 0.865585] NET: Registered PF_INET6 protocol family > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 kernel: [ 0.872235] NET: Registered PF_PACKET protocol family > rnel: [ 1.153962] virtio_net virtio1 ens4: renamed from eth0 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 sh[474]: ens4=ens4 > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 systemd[1]: Finished Raise network interfaces. > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 systemd[1]: Reached target Network. > Aug 13 22:44:15 build-sid-newkernel-2022-08-13t22-41 systemd[1]: Reached target Network is Online. > > rebooting into the new kernel: > > [ 0.475837] NET: Registered PF_NETLINK/PF_ROUTE protocol family > [ 0.476558] audit: initializing netlink subsys (disabled) > [ 0.630598] NetLabel: Initializing > [ 0.631503] NetLabel: domain hash size = 128 > [ 0.632409] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO > [ 0.632515] NetLabel: unlabeled traffic allowed by default > [ 0.654654] NET: Registered PF_INET protocol family > [ 0.672514] NET: Registered PF_UNIX/PF_LOCAL protocol family > [ 0.871362] Initializing XFRM netlink socket > [ 0.872171] NET: Registered PF_INET6 protocol family > [ 0.875791] NET: Registered PF_PACKET protocol family > [ 0.876932] 9pnet: Installing 9P2000 support > [ 0.887570] printk: console [netcon0] enabled > [ 0.888339] netconsole: network logging started > [ 0.943112] virtio_net virtio1 enp0s4: renamed from eth0 > Starting Raise network interfaces... > [ OK ] Found device Virtio network device. > [ 1.876517] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s4: link becomes ready > Aug 13 22:51:16 debian systemd[1]: Starting Raise network interfaces... > Aug 13 22:51:16 debian dhclient[349]: Internet Systems Consortium DHCP Client 4.4.3 > Aug 13 22:51:16 debian ifup[349]: Internet Systems Consortium DHCP Client 4.4.3 > Aug 13 22:51:16 debian ifup[349]: Copyright 2004-2022 Internet Systems Consortium. > Aug 13 22:51:16 debian ifup[349]: For info, please visit https://www.isc.org/software/dhcp/ > Aug 13 22:51:16 debian dhclient[349]: Copyright 2004-2022 Internet Systems Consortium. > Aug 13 22:51:16 debian dhclient[349]: For info, please visit https://www.isc.org/software/dhcp/ > Aug 13 22:51:16 debian kernel: [ 0.475837] NET: Registered PF_NETLINK/PF_ROUTE protocol family > Aug 13 22:51:16 debian kernel: [ 0.476558] audit: initializing netlink subsys (disabled) > Aug 13 22:51:16 debian systemd[1]: Found device Virtio network device. > Aug 13 22:51:16 debian ifup[349]: DHCPDISCOVER on enp0s4 to 255.255.255.255 port 67 interval 6 > Aug 13 22:51:16 debian dhclient[349]: DHCPDISCOVER on enp0s4 to 255.255.255.255 port 67 interval 6 > Aug 13 22:51:16 debian sh[356]: ifup: waiting for lock on /run/network/ifstate.enp0s4 > Aug 13 22:51:16 debian kernel: [ 0.630598] NetLabel: Initializing > Aug 13 22:51:16 debian kernel: [ 0.631503] NetLabel: domain hash size = 128 > Aug 13 22:51:16 debian kernel: [ 0.632409] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO > Aug 13 22:51:16 debian kernel: [ 0.632515] NetLabel: unlabeled traffic allowed by default > Aug 13 22:51:16 debian kernel: [ 0.654654] NET: Registered PF_INET protocol family > Aug 13 22:51:16 debian kernel: [ 0.672514] NET: Registered PF_UNIX/PF_LOCAL protocol family > Aug 13 22:51:16 debian kernel: [ 0.871362] Initializing XFRM netlink socket > Aug 13 22:51:16 debian kernel: [ 0.872171] NET: Registered PF_INET6 protocol family > Aug 13 22:51:16 debian kernel: [ 0.875791] NET: Registered PF_PACKET protocol family > Aug 13 22:51:16 debian kernel: [ 0.876932] 9pnet: Installing 9P2000 support > Aug 13 22:51:16 debian kernel: [ 0.887570] printk: console [netcon0] enabled > Aug 13 22:51:16 debian kernel: [ 0.888339] netconsole: network logging started > Aug 13 22:51:16 debian kernel: [ 0.943112] virtio_net virtio1 enp0s4: renamed from eth0 > Aug 13 22:51:16 debian kernel: [ 1.876517] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s4: link becomes ready > [ *** ] A start job is running for Raise network interfaces (6s / 5min) > Aug 13 22:51:22 debian dhclient[349]: DHCPDISCOVER on enp0s4 to 255.255.255.255 port 67 interval 13 > [*** ] A start job is running for Raise network interfaces (19s / 5min) > Aug 13 22:51:35 debian dhclient[349]: DHCPDISCOVER on enp0s4 to 255.255.255.255 port 67 interval 14 > [*** ] A start job is running for Raise network interfaces (33s / 5min) > ... > Hi, Sorry, I didn't get any valuable information from the logs, can you tell me how to get such an image? Or how your [1] script is executed. Thanks. > > Greetings, > > Andres Freund > > > [1] https://github.com/anarazel/pg-vm-images/blob/main/packer/linux_debian.pkr.hcl#L225