Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60D63C54EAA for ; Tue, 24 Jan 2023 15:57:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234400AbjAXP5z (ORCPT ); Tue, 24 Jan 2023 10:57:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234330AbjAXP5v (ORCPT ); Tue, 24 Jan 2023 10:57:51 -0500 Received: from mail-vk1-xa2a.google.com (mail-vk1-xa2a.google.com [IPv6:2607:f8b0:4864:20::a2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F687768C for ; Tue, 24 Jan 2023 07:57:48 -0800 (PST) Received: by mail-vk1-xa2a.google.com with SMTP id v81so7812531vkv.5 for ; Tue, 24 Jan 2023 07:57:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=rt1mrhGHV+ldz6z6aqQgrdha6p8O6lh39DequDEH0yE=; b=IjSHFd+Vn2/fkqTe5+VAtDGku8zfUzzP+8BcO4Ir/3IcZDAaLVJDmxAiuWr2TeDmu/ ER8u67yjuXwboLQIohzs9q9q1U8SE5E7/7s+Pv3PzURjz8lKjKh1Eyw2sCA+nfffpozh oBLz26dFnnbIza3QIq1HQGbQJxHUclbHsX0HHmw+2UwCK4HgVmT7eBRt5kQXMl8aWJPU 53X0p2ObmgjnPCvPVjyX82MDF3oQqeH/KGnjC+1w+O3TOzWdD/WVf6/Owmgsoetq0Wy3 sIBOTe1z/WpXqq2CUItkNHyMPU+iKp8/asuaastuRVXBBfC7o/8fAKX0eCgvfau5MO7X FUVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=rt1mrhGHV+ldz6z6aqQgrdha6p8O6lh39DequDEH0yE=; b=0HaES5MFxEfcHpAftRztNXkWztoa/ErtM0XxNs7oseEEgpkjfntT1KHtMeQyI1ehGR eCUj0jKFuGu78t+857swM+GOhWFBkPklbYoP2b846szLrFkb0cewjmkb/ev6m3FrywQF lpkJ1xV+lSc3atn02IBRDQo2T9fafXbVpNdlRdcl/LqRjtsLPEwcEFyRcjAGwUjplxmv VWMc3PCd87Z130ClbQueKiFwazS8evNqftMYzKJz92TsoZAjAX1Bq6brdervKk2iGo+U kJVamwFPJp+poZUKKroi6dF9kn3+Mwq5x3hHmeYp9YTpSPz8W2nJ2vx9V67cvOJ/aPWO 2Sww== X-Gm-Message-State: AFqh2kqY7gm3OFcIvA0JMEEDYKwVA+UeVVdRlytut4mO/2/STHMz1dbp w9CGabsaAJ0DuxbEC5FwaWoeUjJvKDeYaIh7nqKvaQ== X-Google-Smtp-Source: AMrXdXtqs9pmeYKVlp5gkQOIDBOvbJ1s4bxzVrVQmF0oYHrigv63uukiEf1yx9kbm/7UGTA+8RQ5NOhfeA5Sc0vj+8s= X-Received: by 2002:a1f:2e58:0:b0:3e1:5761:fdbb with SMTP id u85-20020a1f2e58000000b003e15761fdbbmr3626747vku.7.1674575867112; Tue, 24 Jan 2023 07:57:47 -0800 (PST) MIME-Version: 1.0 References: <20230122150246.321043584@linuxfoundation.org> <20230123191128.ewfyc5cdbbdx5gtl@oracle.com> <20230123194218.47ssfzhrpnv3xfez@oracle.com> <20230124125445.gqko2lyvp3vmecto@oracle.com> In-Reply-To: <20230124125445.gqko2lyvp3vmecto@oracle.com> From: Naresh Kamboju Date: Tue, 24 Jan 2023 21:27:35 +0530 Message-ID: Subject: Re: [PATCH 6.1 000/193] 6.1.8-rc1 review To: Tom Saeger Cc: Rich Felker , Greg Kroah-Hartman , stable@vger.kernel.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, linux@roeck-us.net, shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, pavel@denx.de, jonathanh@nvidia.com, f.fainelli@gmail.com, sudipm.mukherjee@gmail.com, srw@sladewatkins.net, rwarsow@gmx.de, Masahiro Yamada , Ard Biesheuvel , Nathan Chancellor , Dennis Gilmore , Palmer Dabbelt , Arnd Bergmann , linux-sh@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 Jan 2023 at 18:25, Tom Saeger wrote: > > On Tue, Jan 24, 2023 at 05:41:22PM +0530, Naresh Kamboju wrote: > > Hi Tom, > > > > On Tue, 24 Jan 2023 at 01:12, Tom Saeger wrote: > > > > > > On Mon, Jan 23, 2023 at 01:11:32PM -0600, Tom Saeger wrote: > > > > On Mon, Jan 23, 2023 at 01:39:11PM +0530, Naresh Kamboju wrote: > > > > > On Sun, 22 Jan 2023 at 20:51, Greg Kroah-Hartman > > > > > > > > > > Results from Linaro=E2=80=99s test farm. > > > > > > > > > > Reported-by: Linux Kernel Functional Testing > > > > > > > > > > * sh, build > > > > > - gcc-8-dreamcast_defconfig > > > > > - gcc-8-microdev_defconfig > > > > > > > > Naresh, any chance you could test again adding the following: > > > > > > > > diff --git a/arch/sh/kernel/vmlinux.lds.S b/arch/sh/kernel/vmlinux.= lds.S > > > > index 3161b9ccd2a5..b6276a3521d7 100644 > > > > --- a/arch/sh/kernel/vmlinux.lds.S > > > > +++ b/arch/sh/kernel/vmlinux.lds.S > > > > @@ -4,6 +4,7 @@ > > > > * Written by Niibe Yutaka and Paul Mundt > > > > */ > > > > OUTPUT_ARCH(sh) > > > > +#define RUNTIME_DISCARD_EXIT > > > > #include > > > > #include > > > > #include > > > > > > > > > > > > My guess is build environment is using ld < 2.36?? > > > > and this is probably similar to: > > > > a494398bde27 ("s390: define RUNTIME_DISCARD_EXIT to fix link error = with GNU ld < 2.36") > > > > 4b9880dbf3bd ("powerpc/vmlinux.lds: Define RUNTIME_DISCARD_EXIT") > > > > > > > > > > > > Regards, > > > > > > > > --Tom > > > > > > > > > > > > > > > > > > > Build error logs: > > > > > `.exit.text' referenced in section `__bug_table' of crypto/algbos= s.o: > > > > > defined in discarded section `.exit.text' of crypto/algboss.o > > > > > `.exit.text' referenced in section `__bug_table' of > > > > > drivers/char/hw_random/core.o: defined in discarded section > > > > > `.exit.text' of drivers/char/hw_random/core.o > > > > > make[2]: *** [/builds/linux/scripts/Makefile.vmlinux:34: vmlinux]= Error 1 > > > > > > > > > This is also occurring in latest upstream: > > > > Right ! > > build/gcc-8-dreamcast_defconfig > > build/gcc-8-microdev_defconfig > > > > These build errors started from v6.2-rc2 on the mainline [1] & [2]. > > > > > > > > =E2=9D=AF git describe HEAD > > > v6.2-rc5-13-g2475bf0250de > > > > > > =E2=9D=AF tuxmake --runtime podman --target-arch sh --toolchain gcc-8= --kconfig microdev_defconfig > > > > > > `.exit.text' referenced in section `__bug_table' of crypto/algboss.o:= defined in discarded section `.exit.text' of crypto/algboss.o > > > `.exit.text' referenced in section `__bug_table' of drivers/char/hw_r= andom/core.o: defined in discarded section `.exit.text' of drivers/char/hw_= random/core.o > > > make[2]: *** [/home2/tsaeger/linux/linux-upstream/scripts/Makefile.vm= linux:35: vmlinux] Error 1 > > > make[2]: Target '__default' not remade because of errors. > > > make[1]: *** [/home2/tsaeger/linux/linux-upstream/Makefile:1264: vmli= nux] Error 2 > > > make[1]: Target '__all' not remade because of errors. > > > make: *** [Makefile:242: __sub-make] Error 2 > > > make: Target '__all' not remade because of errors. > > > > > > > > > FWIW, the above patch resolves this. > > Yes. Tested and confirmed it fixes the reported problem. > > > > > How many more architectures need something similar? > > Now I see it on sh with gcc-8 only on the mainline. > > > > OTOH, > > It was noticed on earlier stable-rc 5.4 for x86, i386, powerpc, sh and = s390. > > > > git_describe : v5.4.228-679-g79cbaf4448f3 > > kernel_version: 5.4.230-rc1 > > > > Regressions found on sh: [1] & [2] mainline and below > > - build/gcc-8-dreamcast_defconfig > > - build/gcc-8-microdev_defconfig > > > > Regressions found on i386: [3] > > - build/gcc-8-i386_defconfig > > > > Regressions found on powerpc: [4] > > - build/gcc-8-mpc83xx_defconfig > > - build/gcc-8-ppc64e_defconfig > > - build/gcc-8-maple_defconfig > > - build/gcc-8-ppc6xx_defconfig > > - build/gcc-8-defconfig > > - build/gcc-8-tqm8xx_defconfig > > - build/gcc-8-cell_defconfig > > > > Regressions found on s390: [5] > > - build/gcc-8-defconfig-fe40093d > > > > Regressions found on x86_64: [6] > > - build/gcc-8-x86_64_defconfig > > v5.4 needs: > 84d5f77fc2ee ("x86, vmlinux.lds: Add RUNTIME_DISCARD_EXIT to generic DISC= ARDS") > > which didn't hit Linus's tree until: v5.7-rc1~164^2~1 > This explains why v5.4 blew-up and v5.10 didn't. > > I'm testing the following for v5.4 > > 84d5f77fc2ee ("x86, vmlinux.lds: Add RUNTIME_DISCARD_EXIT to generic DISC= ARDS") > This needed a little massaging to apply. > > 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv") > 4b9880dbf3bd ("powerpc/vmlinux.lds: Define RUNTIME_DISCARD_EXIT") > 07b050f9290e ("powerpc/vmlinux.lds: Don't discard .rela* for relocatable = builds") > a494398bde27 ("s390: define RUNTIME_DISCARD_EXIT to fix link error with G= NU ld < 2.36") > + the arch/sh patch https://lore.kernel.org/all/9166a8abdc0f979e50377e617= 80a4bba1dfa2f52.1674518464.git.tom.saeger@oracle.com/ > > > I'd be grateful if you could confirm - so I can send this full series to > Greg. > > If you'd rather - I can send the patch-series now for testing? Please send your repo and branch. I will pick up and run tests on it. - Naresh