Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp69696rwb; Tue, 27 Sep 2022 22:50:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6NfGX6ubEB30D3+WcRwtKo5r3Ghe5ZjBLwIWy6gNxnBKo8GDJ73yywCEOBuUsblTAz8uVB X-Received: by 2002:a05:6402:1014:b0:451:d2a1:236e with SMTP id c20-20020a056402101400b00451d2a1236emr31718693edu.212.1664344252522; Tue, 27 Sep 2022 22:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664344252; cv=none; d=google.com; s=arc-20160816; b=eC8vdZAtV5EBu8QuhdxHkm9aNybwoSW1d/N/peQQa7pX1LRYf6u06e9PWq++Llbgev 06BsbGmi1J2lcbaHj15pRZYZ6IBZjLaqjUMqmbEgEVI7tS2gAHC6sWiejZUipMZ/GOlV AKQWNfMdGFFbPcZnmGsT9CnqyZQTlAHyzkS4msbGJ7h06i+rPa47Hd3siY7WVtGxY1iL Sxoop4muXDcKOkAXhqIkuQsZkpvHfp52DCYxCEgKK1jRJD9WSO6QcReTeN50zS1jrhww vy76C4wQfMOrasDPClAUb17qZeHfs4SvA9t8lD6f8fIQTL15dsJwpYA/NHLwKkTHYFxF wOEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=IPCLwIQ+UERHPm9w4nQGFYrwmlLzJ4AJ3JlVNkOLjfk=; b=twBDYJPiFePC/ObY/eFgNR4cSRY4IAmqTJwmQChU+ptqyYS0xUq2iVpU5h376DP80I ZCDuSpp+djzaWk2qIqeas6WNShRYZq5Jd6IIVt11UUb9SL/SVwqpSlkqQ3gLbsF8d7w4 eNrx23xhzd1U0DtvCdR1tqAeekLiYDkaSUnH0XdcEI9rPw/zErhXTnSAgu3/cZL5CFIC aCXupQpb/dWOtoaj5zxKtr+8lLSOD0JB0G/tUUlswtFeem+8lZ+JrYDf9FeKQt4dZK+x Di+y/prEpfhh2yThot2bw4NIbZnHvf1u+bIOHez4GFgqeAWk8+Uxp25KfMbkE5AOyMc6 t0QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=owmaWL8J; 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 xe1-20020a170907318100b00783b41d746bsi3712218ejb.123.2022.09.27.22.50.20; Tue, 27 Sep 2022 22:50: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; dkim=pass header.i=@google.com header.s=20210112 header.b=owmaWL8J; 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 S231771AbiI1FZx (ORCPT + 99 others); Wed, 28 Sep 2022 01:25:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231278AbiI1FZv (ORCPT ); Wed, 28 Sep 2022 01:25:51 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 543901CD69E for ; Tue, 27 Sep 2022 22:25:49 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id a14so13120328ljj.8 for ; Tue, 27 Sep 2022 22:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=IPCLwIQ+UERHPm9w4nQGFYrwmlLzJ4AJ3JlVNkOLjfk=; b=owmaWL8J0DjnByEMa+cLbTORIRrq8yp3lKV8crjvgMM/NkKnWeQIxzmI5VTzceEs3i S3i46YmZL6hhUlOZgye5isjPYmsTL9s7ZQbh4KxfmQHhPEMfq8R8W01RbLcG9+VJVBK9 8fBxKiJNmH3HTgTCP9QbaG5As7Xex+3GS9vMzEkw0RXkyxtNit3zG4NH6cmFKNhRPLcJ 1wpCfkC3/obFIyVNyGRuEV+B6a4cqc/MfTeighQRcl1evlTq2RPNa22Fpm7esVybK8t9 XiN03BRQL3c+PNAEazrBabL0xPu6A+N1Pr1UnZe63PhoxCuf5jkappeLkxgBidmJu+mi rgAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=IPCLwIQ+UERHPm9w4nQGFYrwmlLzJ4AJ3JlVNkOLjfk=; b=pRa+/Lb2FevnYNPro6uPSJsF8MvD3Ilhc58kvcPOBqGf0d8AWh4M3P1qGpDlRmd7JQ 0U804/nKuiw3WyRm9VnLuzS9YzYRXM+uVYzX+K+06u0555I2mzSCHwdtPDEJVJi/HyRS qsKLcmzH4hjiLVA9Ala60RYapcbhakI4wMCE/BEk12eSLvERvZMgRdx6pzJhdf/+EDDJ ajy3QiScPjxIUgXxK7GHJ8sxyv/wrYUb4zZXLBbOfTfzw6GNAIVfTSF2IWH4pPXJw9xt VGTLA/AwLqbtMM8+jFvctxGf1CAG5WavpqBJzTvQIO4HC9ZNPCama8RcVzfJ7dsKLiKz vG1w== X-Gm-Message-State: ACrzQf1UZFhEth5jIcWpSO5/BkLIvRLpnBfIfFpunVZfm3fUfePBvZuy SwLVrr1OwjhV6CJQ3YduL/drHW29NL3qaiRXNnfVVw== X-Received: by 2002:a2e:3909:0:b0:26c:2ea4:1a79 with SMTP id g9-20020a2e3909000000b0026c2ea41a79mr10902755lja.401.1664342747490; Tue, 27 Sep 2022 22:25:47 -0700 (PDT) MIME-Version: 1.0 References: <20220830193701.1702962-1-maskray@google.com> <20220910075316.no72fdyqjvunomwm@google.com> In-Reply-To: <20220910075316.no72fdyqjvunomwm@google.com> From: Fangrui Song Date: Tue, 27 Sep 2022 22:25:35 -0700 Message-ID: Subject: Re: [PATCH] vdso: Improve cmd_vdso_check to check all dynamic relocations To: Vincenzo Frascino , Thomas Gleixner Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-mips@vger.kernel.org, linux-csky@vger.kernel.org, loongarch@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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,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 Sat, Sep 10, 2022 at 12:53 AM Fangrui Song wrote: > > 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. Ping^2 :)