Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3735094rwb; Mon, 7 Aug 2023 20:03:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJnNWj2sNPx2CHY/DuYqyeeifejy9SRVkkJO5oMFL59VAbpboG87VzDnjuGKcuCfdiqSuP X-Received: by 2002:a17:902:ec8e:b0:1bb:cd5a:ba53 with SMTP id x14-20020a170902ec8e00b001bbcd5aba53mr10505596plg.14.1691463821015; Mon, 07 Aug 2023 20:03:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691463820; cv=none; d=google.com; s=arc-20160816; b=aq9inOa7TK3y6+6vwOGfwxD9sWXY77MtxRakSsap3WJiUaowZL4SGckFKVkyyB0XRj g5yrQAW9sHvAYf2rXGJfa6hmPp4Wj0T7i1CQ5//nB/5+xYD6RB8sCp3OvlStVuhh6Rky tlnmF+LjWSVPS86rD6kyKGdwE9bMnzPq+Ha2Wf8RwB74annE4pvc6oFFICXkeAlCPJMH aorPUgDumQzJBcW6nw2M2MUmMjKfgHyP92kjAzzrimHfN3J8gNZu1hycMkvonNxjj5ol zE8/EhqnKYCRLW+uAO1U3QfPqiOfUC+Go2hTTmIIjV1u52s+P+MHaAAni2r7iOBmTiCX 9LKA== 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=l09UiqmB32dH8CnL4PK01BLznGpgMmgVlMI1USmN8Rg=; fh=+4o42R/MabFjaZhMOgwiMOL3+5s8zii53+rVrrpRaGs=; b=gKJ8TF7XXdMAP57uEQFCU8zaq5l+d5922bge0Kv+HoTlOzaRL2NRI8HEmPEZbSQ1yz gRsyb9ujReTpUBnID+R7s/fT2cAojJRAkJoLzshz65zLJAhlVM4grwmLV5D+Y3H12czl mWpdctm9w3OOOXjPBAiUj8Og1XA8v5uMIFMN5bLrAuugvLzWBXbTnKyYck5mmZwVZrGM wdS0BGYwzXaxvID7uAw0p2vgm3Y+OmcOR/zJtq4QAIFS37Bi42NWAy9djo2ciaBJQDfU 5ptVLz5oq0O660BgZIcF3vOoTdVOZtkk5NXYoq1XbDdXa1BhmmEEtYOCDlY5HEgtt9Rg bYWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=c9QI2THw; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i1-20020a170902e48100b001bbbb70c23asi6548340ple.232.2023.08.07.20.03.28; Mon, 07 Aug 2023 20:03: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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=c9QI2THw; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230106AbjHHCfU (ORCPT + 99 others); Mon, 7 Aug 2023 22:35:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbjHHCfS (ORCPT ); Mon, 7 Aug 2023 22:35:18 -0400 Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADFC2135; Mon, 7 Aug 2023 19:35:17 -0700 (PDT) Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-63d0d38ff97so23295326d6.1; Mon, 07 Aug 2023 19:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691462117; x=1692066917; 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=l09UiqmB32dH8CnL4PK01BLznGpgMmgVlMI1USmN8Rg=; b=c9QI2THwc6V0wze9ZFpZCtzey7oEy+avYyiO1ZSj+rxT5UZVrJ6yjmOHxyxilXffNT mDwElTYQX0wq5aGhCS4dk68BpQB02GaB6zYN8Lmu1rsyit1Y5PzRQRA6Utdhp0swbavg pDtF5xMcKDLLKLO7Q/2uS4bi/zm/e0yOyLYUjA88Ai41ddn/vqKnbO5tvFTGbmFIn7VX SaOZgtipltZLLJUXH+pGcXodWoCqzIkk/igia3GtqM1oxA6sauPtbVVLqsdcjyWhx2RP wRMKhj8fzkQQfxU/maTJzqElQJM1pS6JybYLFB+QcBw2RbDBItZiJPLhg8Bgd4+KuveG wTkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691462117; x=1692066917; 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=l09UiqmB32dH8CnL4PK01BLznGpgMmgVlMI1USmN8Rg=; b=L7fOYsdF1wLYlRchCG5tn20ezc+ImPhluoNh+wwHMkkccFQEO176TlX29o+ydd7cei 55zs7oTKfWefYAmUpiQSBmJtG8oNXrRhVeX5aNF4GypY1c2/YSXwfJadSQ/tqdHbHoia F7ekyHOLwhEiXplKZBnrQFw6LBFS5f+f5Nk6FL/EQ/NDCnzP+fn7usdweO/cZGtoWR4B sKQbOI/TE8CehVTHxK3MVkfL8UTIsfSLBiXfO7nlH/dOx9SUzOXeupyibNY9k4JXDf8f aUR/I7TFjQQZHE32czE2esnoYhvxG95Fc2y/NpMIc0Jfyr8lneoTtaE+AXvlOKytfBls n1wQ== X-Gm-Message-State: AOJu0YwycIK2rr9ccwr8Q3ycGjr7W4poYKXVNDtkJHnQauUnXSVoGiAR hqWBNDhG8EtWTXEGD5PgD0T02BwqOtVD8lTp0oY= X-Received: by 2002:a0c:9d49:0:b0:635:ec47:bfb3 with SMTP id n9-20020a0c9d49000000b00635ec47bfb3mr11647255qvf.0.1691462116794; Mon, 07 Aug 2023 19:35:16 -0700 (PDT) MIME-Version: 1.0 References: <20230807142238.50616687@canb.auug.org.au> In-Reply-To: From: Dexuan-Linux Cui Date: Mon, 7 Aug 2023 19:35:05 -0700 Message-ID: Subject: Re: linux-next: build failure after merge of the hyperv tree To: Wei Liu Cc: Stephen Rothwell , Linux Kernel Mailing List , Linux Next Mailing List , Dexuan Cui , Tianyu.Lan@microsoft.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 Sun, Aug 6, 2023 at 10:39=E2=80=AFPM Wei Liu wrote: > > On Mon, Aug 07, 2023 at 02:22:38PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > After merging the hyperv tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > > drivers/pci/controller/pci-hyperv.o: warning: objtool: .altinstr_replac= ement+0x0: weirdly overlapping alternative! 11 !=3D 6 > > drivers/hv/hv_balloon.o: warning: objtool: .altinstr_replacement+0x0: w= eirdly overlapping alternative! 11 !=3D 6 > > drivers/hv/hv_vmbus.o: warning: objtool: .altinstr_replacement+0x3: wei= rdly overlapping alternative! 10 !=3D 5 > > vmlinux.o: warning: objtool: .altinstr_replacement+0x633: weirdly overl= apping alternative! 11 !=3D 6 > > incomplete ORC unwind tables in file: vmlinux > > Failed to sort kernel tables > > > > I have no idea what caused this. Hi Stephen, My kernel source was checked out from the Hyper-V tree's hyperv-next branch last Friday, which had Tianyu's 8 patches. I'm able to repro the same build failure in a Ubuntu 22.04 VM with gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4: I run the below commands: make mrproper make allmodconfig make -j128 make -j128 ... LD [M] net/qrtr/qrtr-tun.ko LD [M] net/qrtr/qrtr-mhi.ko LD [M] virt/lib/irqbypass.ko LD [M] arch/x86/video/fbdev.ko make: *** [Makefile:234: __sub-make] Error 2 make -j128 DESCEND objtool INSTALL libsubcmd_headers CALL scripts/checksyscalls.sh CHK kernel/kheaders_data.tar.xz UPD include/generated/utsversion.h CC init/version-timestamp.o LD .tmp_vmlinux.kallsyms1 NM .tmp_vmlinux.kallsyms1.syms KSYMS .tmp_vmlinux.kallsyms1.S AS .tmp_vmlinux.kallsyms1.S LD .tmp_vmlinux.kallsyms2 NM .tmp_vmlinux.kallsyms2.syms KSYMS .tmp_vmlinux.kallsyms2.S AS .tmp_vmlinux.kallsyms2.S LD vmlinux NM System.map SORTTAB vmlinux incomplete ORC unwind tables in file: vmlinux Failed to sort kernel tables make[2]: *** [scripts/Makefile.vmlinux:36: vmlinux] Error 1 make[2]: *** Deleting file 'vmlinux' make[1]: *** [/opt/linux-next/Makefile:1250: vmlinux] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:234: __sub-make] Error 2 If I revert Tianyu's patches by "git diff v6.5-rc4 | patch -Rp1", the build can succeed. If I apply the the patches, I get the same failure: drivers/hv/hv_balloon.o: warning: objtool: .altinstr_replacement+0x0: weirdly overlapping alternative! 11 !=3D 6 ... drivers/pci/controller/pci-hyperv.o: warning: objtool: .altinstr_replacement+0x0: weirdly overlapping alternative! 11 !=3D 6 ... drivers/hv/hv_vmbus.o: warning: objtool: .altinstr_replacement+0x3: weirdly overlapping alternative! 10 !=3D 5 ... AR built-in.a AR vmlinux.a LD vmlinux.o vmlinux.o: warning: objtool: .altinstr_replacement+0x633: weirdly overlapping alternative! 11 !=3D 6 OBJCOPY modules.builtin.modinfo GEN modules.builtin GEN .vmlinux.objs MODPOST Module.symvers CC .vmlinux.export.o UPD include/generated/utsversion.h CC init/version-timestamp.o LD .tmp_vmlinux.kallsyms1 NM .tmp_vmlinux.kallsyms1.syms KSYMS .tmp_vmlinux.kallsyms1.S AS .tmp_vmlinux.kallsyms1.S LD .tmp_vmlinux.kallsyms2 NM .tmp_vmlinux.kallsyms2.syms KSYMS .tmp_vmlinux.kallsyms2.S AS .tmp_vmlinux.kallsyms2.S LD vmlinux NM System.map SORTTAB vmlinux incomplete ORC unwind tables in file: vmlinux Failed to sort kernel tables make[2]: *** [scripts/Makefile.vmlinux:36: vmlinux] Error 1 make[2]: *** Deleting file 'vmlinux' make[1]: *** [/opt/linux-next/Makefile:1250: vmlinux] Error 2 make[1]: *** Waiting for unfinished jobs.... ... make: *** [Makefile:234: __sub-make] Error 2 It turns out that I already made a fix https://github.com/dcui/linux/commit/c4db45f6256248435b2a303b264ecbb41320c4= 1d which can fix the build failure and fix a crash issue (see https://lwn.net/ml/linux-kernel/SA1PR21MB1335A21D5D037FE88D9CF820BF0EA@SA1P= R21MB1335.namprd21.prod.outlook.com/ ) Thanks, Dexuan > /me scratches head. > > > I have used the hyperv tree from next-20230804 for today. > > I've reverted that series from my tree. Thanks for the heads up. > > Thanks, > Wei.