Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2917712rwn; Sat, 10 Sep 2022 01:12:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR6L7VTc//IXiR4rXK96IjDPBMGSc7DX6Azze4rXhjwcGJJDdOp648+vzOplZgfDl+4wtq/z X-Received: by 2002:a17:907:94c2:b0:73d:c534:1ac0 with SMTP id dn2-20020a17090794c200b0073dc5341ac0mr12516551ejc.461.1662797547873; Sat, 10 Sep 2022 01:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662797547; cv=none; d=google.com; s=arc-20160816; b=bqrWT/xFO+PQaIhQkzr9Z39CdCIQGwGH1/WM3kopxBqOfeYhZWd24hRoUwhSCiIfDr Agcykgf3qSZdvwXsmCu/5rwz1+jzDkYeGawgn0i3oMYk51NBcOYEPCbd378X3f+ZAmVP dkXZ4CSfxR7ExFlne7xHXr59N5+1hlcSCybFN1sV0249rBK9caApTqQYCW2LJUAxzuJx V1hJrUm1aKDm8Jk4YQVauOR8SVGH/E4fT/loMUDOx3wqDWZtkRKx+7I/oFEreAjimkEl w7zJg78dPfSMhtj9dydJaWZI9m13zobHX6MdV6GMHMCsn5UbZWDOTF6lpYEd2+rmtCEK BhDg== 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:to:from:date:dkim-signature; bh=JE+O0JjBaUaKaVbXBPjztEKOPO7pJKl9qx1EvIyCmeg=; b=TySYPoIExS6t/aH8paH4503HM1s/p9roSksVENIHPq+EFqnzEJR/Kpauejlw3wljtO Imn9ljovoEhK5Ht5kwr53qRg7EwlkWqUUa/6Zl0ktULAJh8AkQAggFAxeCyysoDu3ikR VX/z39EzMSqd3qQz25IGsGR6BpfzK0Yo/PHjw3YIn6AzhAWCa2fnBTzqRusvEOB7yv8M ZLbSyk3ouCnKZEz9aN3D462nE04GhbatMp6vXL9YKUAKaB8/PC0csNvkig37xlJci103 piz15DRtal18BBl9thhMVdfdyIOQl6UQO/uDArqwtMCMP+CsD0RM27vJVrVXyGLVdR96 GUzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=cvZJIBqG; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g23-20020aa7c597000000b00450cd0c47b6si1813885edq.191.2022.09.10.01.12.00; Sat, 10 Sep 2022 01:12:27 -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=@google.com header.s=20210112 header.b=cvZJIBqG; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229566AbiIJHx3 (ORCPT + 99 others); Sat, 10 Sep 2022 03:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbiIJHxZ (ORCPT ); Sat, 10 Sep 2022 03:53:25 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A19E647CD for ; Sat, 10 Sep 2022 00:53:23 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id jm11so3793349plb.13 for ; Sat, 10 Sep 2022 00:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date; bh=JE+O0JjBaUaKaVbXBPjztEKOPO7pJKl9qx1EvIyCmeg=; b=cvZJIBqGw+0ibOxmX+2fb/j2Y70TPEysHn1ZyDWt4NtukFlD84lWxjHmLm+5vXJ+VJ KXVReY8lhuzBkeoQdI7cqq4CEGfH6ZTdjzNeF13E1LDMcxz87nP6HidR7yqXFQU1vbnh AFBCIQriexf4bFS7x6XlHr4yXe5h214hVucA3T2xooH1iY/urtq9/xFfF+fNYNhSazGp s44Y7FJm+0cx4aAai0rYk6VbcIjmSTh5h7jqgPsI7/RNW8pRFTd8/HnYFNpqYW6qV08Q u4byXDmpYkU4fdgZVV/tCI7UrKUMeRH8yPvPvt+aTkXy8pnKHYljhWXg0m7Nm+SlAE88 zgbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=JE+O0JjBaUaKaVbXBPjztEKOPO7pJKl9qx1EvIyCmeg=; b=ax6noZGHP/+bu5ebl5iCuNjBtmp+z0AA3BS5MHPtxB/I7w5tW++ae4lC4ktTNnvDYG 6C7RrU5NFYqm/izCMwF2yYJ5dsJ9k9EySIdjT6rZiyy4IqbngFsVCsQzoi6xIdxrM4Ak +yAfdLkujkFro4JBjHhh15PrruLKjD8hZuUqeU54yEhQ05je/7T/zy62SPnTST5GnfTW mhnj+B38veOCwKYkk4w2FfRaMNlZLJ0o+12yNRdGy5wG+PJtzcUxXtdKOvhVTh24G+2k bm2P6KCw7rKuGenyij5bZZWj3Z4Qq4gl0MPolqc7/pgxofH02p4rIdeCxcUMijGtyZJy 5cyg== X-Gm-Message-State: ACgBeo0CVpzuP2uW2K39iqE9yRq/c1Uvu6NlHJxk81imHQQoSlxsNIIx Pnp3XaOVezO0/fRdqPM9OEAZlg== X-Received: by 2002:a17:90b:1d02:b0:1fe:36a:6e01 with SMTP id on2-20020a17090b1d0200b001fe036a6e01mr13521195pjb.102.1662796402707; Sat, 10 Sep 2022 00:53:22 -0700 (PDT) Received: from google.com ([2620:15c:2ce:200:3bf1:3d60:1b12:a903]) by smtp.gmail.com with ESMTPSA id z12-20020a170903018c00b00176d4b093e1sm1717555plg.16.2022.09.10.00.53.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Sep 2022 00:53:21 -0700 (PDT) Date: Sat, 10 Sep 2022 00:53:16 -0700 From: Fangrui Song To: Vincenzo Frascino , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org Subject: Re: [PATCH] vdso: Improve cmd_vdso_check to check all dynamic relocations Message-ID: <20220910075316.no72fdyqjvunomwm@google.com> References: <20220830193701.1702962-1-maskray@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20220830193701.1702962-1-maskray@google.com> X-Spam-Status: No, score=-15.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, SUSPICIOUS_RECIPS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 2022-08-30, Fangrui Song wrote: >The actual intention is that no dynamic relocation exists. However, some >GNU ld ports produce unneeded R_*_NONE. (If a port is not care enough to >determine the exact .rel[a].dyn size, the trailing zeros become R_*_NONE >relocations. E.g. powerpc64le ld as of 2.38 has the issue with >defconfig.) R_*_NONE are generally no-op in the dynamic loaders. So just >ignore them. > >With the change, we can remove ARCH_REL_TYPE_ABS. ARCH_REL_TYPE_ABS is a >bit misnomer as ports may check RELAVETIVE/GLOB_DAT/JUMP_SLOT which are >not called "absolute relocations". (The patch is motivated by the arm64 >port missing R_AARCH64_RELATIVE.) > >While here, replace "egrep" with "grep" as "egrep" is deprecated in GNU >grep 3.7. > >Signed-off-by: Fangrui Song >--- >[...] > Ping.