Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4029655ioo; Wed, 25 May 2022 13:14:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLcVVgSRsLxd2VkOOWP61gtJZD82PjKgJF+0wr0gvYzCmnQ21Dee+woaa5sOlqbc53R90H X-Received: by 2002:a05:6a00:1792:b0:519:80a:9598 with SMTP id s18-20020a056a00179200b00519080a9598mr2186611pfg.10.1653509665667; Wed, 25 May 2022 13:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653509665; cv=none; d=google.com; s=arc-20160816; b=Ms/5eb7/Q40gm06DMjBBxFFmvZnAah7eas/D/JmrHXBYpApPp61XRqNxmM/eLypGha evQ0M0uf5bBY1/3flt52oA6irtlYSS6e/dyEpSvJIHomwXxYG3zf+0kNtciAAr8v0FdU x8cMiiLMReKLXzJ2kMuT62FKUeh9fW0P1LQsdfrVETuQz52SqDN9Gn6lN6V3dHRyvYgx bv4mmVRdwD7CVkFtt3FlFcbJMJlmTTOPsuG49b2HbxV5fjCdemdZuHr1rlwm+mA5X0Ya +vqamdkDSzHOpClCduTcwEZQUfCf+gyRPPSohfPAiLq5OQvXUKeH3OiK2yg+MZXhww9W XbHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=nazAJnmKC29W9OE3p4jtrAjcYB6KyAUjKMWBeLzTPEM=; b=LtDxbI1kByVcEH5ujW8SsXcoLB0OHcCgyjjt8psJB0ujWPELRYkF/IMNc2sMXZN0P0 dO9/xudQW2U8LKZJfuMFuki0YOB4u24SMnjf1Ofoxbr09y6npG3aKms29q1WukIYDD++ ZlxTv/v907/fWrOWwWlYPs1Hy+9QyaStr62L1N2ebqOiP7z7HfQ6rmqqrFD8zCOvh2B5 XdxXGxVZAkWCebTOzTgpkd8GlHdZUdmOi4FZVWvtsFhLtX/ziAikePKepVe0swT3brpg 7fJ3Q3tKEUMTwbgSaG1nyNb7Q82I98bCjwqqdoeCEHRL78Kf62dfn1dSjQP11lVtHTff Ylrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pcnkDXAe; 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 a190-20020a6366c7000000b003f25a28a4afsi18632932pgc.241.2022.05.25.13.14.14; Wed, 25 May 2022 13:14:25 -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=20210112 header.b=pcnkDXAe; 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 S242027AbiEXWGy (ORCPT + 99 others); Tue, 24 May 2022 18:06:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236103AbiEXWGu (ORCPT ); Tue, 24 May 2022 18:06:50 -0400 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 838662F020; Tue, 24 May 2022 15:06:49 -0700 (PDT) Received: by mail-oi1-x231.google.com with SMTP id v9so18386760oie.5; Tue, 24 May 2022 15:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nazAJnmKC29W9OE3p4jtrAjcYB6KyAUjKMWBeLzTPEM=; b=pcnkDXAe5YvTRgJxeRg3matW3Bv2wtdSXK2Y9Hhj3sk6qgF61Ruuf0leQFCEirgQ7C TtUxSytvQlTV0hrf7SgFsfLm4pPUSiAEwfEAiDfG+gThPQcLXdGJSK6JHNeep3tRNJ7+ YDxIKarQEOKdoCzcTVFB7JZVwvNYK5/lER5aExjEL2QXKzNws3LspaPVFgYSsz+Df5OO AwYS+zoL7QF5PiLOdJpQg4nnSt/V9RUgdEJ5wZMHdPTNEuVr8PebFOltKY2dkCe/XFbt Uhc/lImMGV4sNqpIxtqzD3SJUdxInK/NOcl8uFrZ2Zr5Q6VjdDZrqJ6pPfQznwY5JKmN CRvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=nazAJnmKC29W9OE3p4jtrAjcYB6KyAUjKMWBeLzTPEM=; b=elKfla4XlC3NjI+Guyj3mIUzkn2OnxrZnBkvwhq5geiw3NkXXwUz73pT+i2Lt/G8R4 zFMD2O6PZBGLAF8slNQEtei90/CzEeImKVQyZhnNRWdGpfdtuVDlpd2mcvMV1gzl37Oq 4OkNg3ufqLafURFy14QLXSCJnw4/moWPucDYe3OLaaux/luPmQyHeIEFx8XEXYC4wl9L cJy6DExOZUhi5m2Eti/T28oPoKyT8Y0KennW9UOlZCBqJWVVsa/kM/HUUZp+8a9dk2Y+ yBYqaAGSQztIxggfb8BYo9qYV8f/BluAJa7X8vs8gdgdEoolMpWCGB29fLOCej9xiRrW r76w== X-Gm-Message-State: AOAM533nZn7+H8Q+V/CrtL1W1O5r4ZNI7K4n9qJ9ZzW9f4VUMdeCxhiE pXpdVsTtEUew7xEZ29XvQYY= X-Received: by 2002:aca:5a0a:0:b0:32b:a51:6cd8 with SMTP id o10-20020aca5a0a000000b0032b0a516cd8mr3580050oib.112.1653430008860; Tue, 24 May 2022 15:06:48 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id q7-20020aca4307000000b00325cda1ffa2sm5734695oia.33.2022.05.24.15.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 May 2022 15:06:48 -0700 (PDT) Sender: Guenter Roeck Date: Tue, 24 May 2022 15:06:46 -0700 From: Guenter Roeck To: Guo Ren 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 , Heiko =?iso-8859-1?Q?St=FCbner?= , Guo Ren Subject: Re: [PATCH V9 20/20] riscv: compat: Add COMPAT Kbuild skeletal support Message-ID: <20220524220646.GA3990738@roeck-us.net> References: <20220322144003.2357128-1-guoren@kernel.org> <20220322144003.2357128-21-guoren@kernel.org> <20220523054550.GA1511899@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 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. Guenter