Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp233338ioo; Thu, 26 May 2022 02:22:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxn/Lz6C1716/rK3P/vwfJirPbY5ceIF5Y4xYGlVwHgmStPpC9V7ZbxBdiN8sy7UvEPE3gq X-Received: by 2002:a05:6402:5409:b0:42a:a643:4eb8 with SMTP id ev9-20020a056402540900b0042aa6434eb8mr39564152edb.71.1653556978006; Thu, 26 May 2022 02:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653556977; cv=none; d=google.com; s=arc-20160816; b=glIL6cu1wmS2VftTl+YpyIoUAfJYRW9Dx7UopDT2AaOb7dU7qc5zAquTvEl7GfeN3C 9gMjNmMNuuojZ5x5MaXixJy1mQGf/7DgR/GiCwUPYmX7/Sh3VHhybU+KIvc7VjqIWIfO zuvpTBoYS5dSXlY/jZav/3T91a0f1W6i6Yd/0QuIOcv5oHqNRVvm+sSxr8LymGVm7U1I m69p5d+rsNpw4X0a3l1wgX9VlVfa6UTYOoZg/IOUaX2Q9DRleOlF7MXOIxH+ST0P9lIz I2HkriP0j9ZDmUlOuuf9Mw+ifOgcJtmctKjoHN6IhwEsSul01yCDzxyivI8iFY01qB/6 8aDw== 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=b9II2V3Tcx8wFdvH7bLStaRgzlhTAduTq4R+XIKA8l0=; b=hgxWi+Bd+B+eWWLT09P7AIFHvQUQFO/60DNGGB/5jki0VG5ZIQFrylfKH+gbBoD7Y4 6+/5kNmbxCh04PHydqu/gRbbx6X8R7q0qdL1to92STKC2nUkakwRYv05kkRha9RkDteQ 4M9X976Wj8OThwc9yDKOiAO8wtP79vAAxG1qEPeWpCLlYhcZ36S8+vqkFupih6ZtZ9r0 YVAVWmkBZugOoRfppIy8a62wnO9Ur8Vu4DG4mAWQ36cJiZXLLnk/MEHIgdZFRr4D+oft wHImXd1pviCNMXtQFykQDsM4bmbQQFuvrdmXX73yEcxeDxoRaqYUsosQ2JD/jKcdKV4V hmQQ== 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 b25-20020a17090630d900b006fe8e64d480si921606ejb.701.2022.05.26.02.22.30; Thu, 26 May 2022 02:22:57 -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 S236325AbiEYK5z (ORCPT + 99 others); Wed, 25 May 2022 06:57:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230281AbiEYK5x (ORCPT ); Wed, 25 May 2022 06:57:53 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 584461182F; Wed, 25 May 2022 03:57:50 -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 1ntohn-0005Jh-KS; Wed, 25 May 2022 12:57:31 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Guo Ren , Guenter Roeck Cc: 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 12:57:30 +0200 Message-ID: <6435704.4vTCxPXJkl@diego> In-Reply-To: <20220524220646.GA3990738@roeck-us.net> References: <20220322144003.2357128-1-guoren@kernel.org> <20220524220646.GA3990738@roeck-us.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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, 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. 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 - 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/