Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp41022ioo; Wed, 25 May 2022 20:00:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2OqmdhNTH0BsywebrkwV3icmTiR6i6rd7aLUMf1z9BSkk3i+8d/Xyfh8LuWGdC7bBhUXy X-Received: by 2002:a17:906:3b8d:b0:6fe:94ac:2a78 with SMTP id u13-20020a1709063b8d00b006fe94ac2a78mr32526984ejf.547.1653534052420; Wed, 25 May 2022 20:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653534052; cv=none; d=google.com; s=arc-20160816; b=UWutEqaUpogGHuKZef2MMK1F7N8hPtdhIASCnU0xfTyfKoQ9Etw7h1jcO24U6SJTKo f5KiN+iucCs3bHbgEtrtgFWxVsVDgL1+AaPY+PSBgWEEFoGaB9Q3MvRixEdDOP005Hd0 8sJTgDOkO8mRFX+aTJdZKbX4/wlSnP0KSscnu+mKdI1Hy7wV4ftxq88cROH2YvDXRvny iKKSa55ckUkDJJv/8GmyUowucmVaxVnu0NWI8aZ42hD1EfbJGt0KY/YRdgh3MFgJHZwJ SmI6nbPVQuaDsBbit8QtV2Qt3SPUdyqfYZacb3vgbto4LQtwp1q3pAaS8dIpns/xw6tr qsBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/XgDKzdavUsVdpNPP2QvY7zPeHwiGarogZ4F2VE59cg=; b=Si4REg6AtDRTh7xEgfGIaJNeeGB+h0qtfODGYbbAH4zVnAhY6IU4HCp7RfJYkgC6Nq LTuzVgCRH1WZSm9OnkrNkw0qpROsnPqfvzlOYV85cdUDx4EguSsEHKfdVBvNVyp6llQS YEtMhKadFZPG1wRf0G2aZxGWrw9Cv1++ypFqBJIhLlXsRQO7up7yBKHUphwCfoAT25sS nv/+0jvkh0GCHv75IeJSwiY36NpmSBob0Pie09h8zGMxOXkn4tHn343kIeGcaDNC/rmL 5qI1YJYJsQmdCzcUn/wowc8W9HLJQr0IVu7RDZ9ylNiKXsNPKgRbjrgFuUn0k1/zp05s HLEg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o15-20020a170906974f00b006f3c67436edsi452171ejy.459.2022.05.25.20.00.17; Wed, 25 May 2022 20:00:52 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344450AbiEYTiF convert rfc822-to-8bit (ORCPT + 99 others); Wed, 25 May 2022 15:38:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344355AbiEYTiA (ORCPT ); Wed, 25 May 2022 15:38:00 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A89A66C84; Wed, 25 May 2022 12:37:47 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntwp4-0007pS-Ng; Wed, 25 May 2022 21:37:34 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Guo Ren Cc: Guenter Roeck , Palmer Dabbelt , Arnd Bergmann , Greg Kroah-Hartman , Christoph Hellwig , linux-arch , Linux Kernel Mailing List , linux-riscv , linux-csky@vger.kernel.org, linux-s390 , sparclinux , linuxppc-dev , Parisc List , "open list:BROADCOM NVRAM DRIVER" , Linux ARM , the arch/x86 maintainers , Guo Ren Subject: Re: [PATCH V9 20/20] riscv: compat: Add COMPAT Kbuild skeletal support Date: Wed, 25 May 2022 21:37:33 +0200 Message-ID: <1766627.8hzESeGDPO@diego> In-Reply-To: References: <20220322144003.2357128-1-guoren@kernel.org> <3418219.V25eIC5XRa@diego> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_NONE, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR 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 Am Mittwoch, 25. Mai 2022, 18:08:22 CEST schrieb Guo Ren: > Thx Heiko & Guenter, > > On Wed, May 25, 2022 at 7:10 PM Heiko St?bner wrote: > > > > Am Mittwoch, 25. Mai 2022, 12:57:30 CEST schrieb Heiko St?bner: > > > Am Mittwoch, 25. Mai 2022, 00:06:46 CEST schrieb Guenter Roeck: > > > > On Wed, May 25, 2022 at 01:46:38AM +0800, Guo Ren wrote: > > > > [ ... ] > > > > > > > > > > The problem is come from "__dls3's vdso decode part in musl's > > > > > > ldso/dynlink.c". The ehdr->e_phnum & ehdr->e_phentsize are wrong. > > > > > > > > > > > > I think the root cause is from musl's implementation with the wrong > > > > > > elf parser. I would fix that soon. > > > > > Not elf parser, it's "aux vector just past environ[]". I think I could > > > > > solve this, but anyone who could help dig in is welcome. > > > > > > > > > > > > > I am not sure I understand what you are saying here. Point is that my > > > > root file system, generated with musl a year or so ago, crashes with > > > > your patch set applied. That is a regression, even if there is a bug > > > > in musl. > Thx for the report, it's a valuable regression for riscv-compat. > > > > > > > Also as I said in the other part of the thread, the rootfs seems innocent, > > > as my completely-standard Debian riscv64 rootfs is also affected. > > > > > > The merged version seems to be v12 [0] - not sure how we this discussion > > > ended up in v9, but I just tested this revision in two variants: > > > > > > - v5.17 + this v9 -> works nicely > > > > I take that back ... now going back to that build I somehow also run into > > that issue here ... will investigate more. > Yeah, it's my fault. I've fixed up it, please have a try: > > https://lore.kernel.org/linux-riscv/20220525160404.2930984-1-guoren@kernel.org/T/#u very cool that you found the issue. I've tested your patch and it seems to fix the issue for me. Thanks for figuring out the cause Heiko > > > - v5.18-rc6 + this v9 (rebased onto it) -> breaks the boot > > > The only rebase-conflict was with the introduction of restartable > > > sequences and removal of the tracehook include, but turning CONFIG_RSEQ > > > off doesn't seem to affect the breakage. > > > > > > So it looks like something changed between 5.17 and 5.18 that causes the issue. > > > > > > > > > Heiko > > > > > > > > > [0] https://lore.kernel.org/all/20220405071314.3225832-1-guoren@kernel.org/ > > > > > > > > > > > > > >