From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3B952C38142 for ; Fri, 27 Jan 2023 23:20:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AEC/fEStPlU/7JTSeOvxwYfL7AgFJ4s2L3YqJ/qYQ6o=; b=J1ckg1uHr6i9/8 HGBi1AzHgwraFswWCVc1XTO9CYhkChQAko3wZk7plr42uBwQ2msltKGfd9ftg4Swf396OaH2wQSCD eLjtnGrbnEJP3m7xPc5sD4jGZ13Z5fyjH9u8P8wfIJeRoYcmKZp4uGrVRO+a9BYqbrl+Fd1+xATOU XYR2Kkgs7PFjYM30Bz/oanfuMs99K0mcLTtpl7k8P211pH0DnDq+tkIUWkQHCGiPDAwy3SAqgrInc N0GhpwM7rmPWbGDM9Q9fEN/bITMINeMCskM1onfGPFj74klI1NUZW5V9LkGd1/kKAaFY5D35JNPez YZQPpcUWkr65HvajpXug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pLY0Y-00Gp6C-UP; Fri, 27 Jan 2023 23:19:47 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pLY0W-00Gp3G-09 for linux-arm-kernel@lists.infradead.org; Fri, 27 Jan 2023 23:19:45 +0000 Received: by mail-pl1-x62b.google.com with SMTP id g23so6445341plq.12 for ; Fri, 27 Jan 2023 15:19:38 -0800 (PST) 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:message-id:reply-to; bh=8CUiuR0W5E+PBhliE9B5Xpc1hgvQcn7IvZXYHXz1Ztk=; b=paJf4L9cWbEi06hvXF3W+dvDzKcJfx5lCtIJZryT2W6x9jn8QFdqdeSxBXueWWBz4l rmERWAhF8Jm6eVjAbcEKqXWk92TaZ81krplTYlrMd/cx7BLYELfqbb5CODOLpDvn3Wml kRDg2FG0oQukaBrpadAmUfS7JdX6dtNX5Yhxfrmh9fF25lANpaUbh+OUe4mJnDmapjXX gkAdUczu4u3q5myPePEFbhYsOrjzSYhCHKeHI7PmJlrIZYidHb64mfDumPwdlk9pOjoP gInzuu73k1EMmj9geC+hKbAVQjTYtmE/jHVcj9mm7ngPUJ7ymq4p0azycwmTjONcP99X kwzg== 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:message-id :reply-to; bh=8CUiuR0W5E+PBhliE9B5Xpc1hgvQcn7IvZXYHXz1Ztk=; b=loIw5N9+aYo0kTqWLgCz+/aFBjp3cmCikuQ+OQXfi4IAylgBgCspithqwlVxH4xv/L xq5paboPXrUFLlwgQSXF9aIWtgXqGbuod+otEbSneHKCglpERnugMZAhOSCvmXx4g6vA P+tEtVOQR7zkRLxH8GDItYwMoVzX0dvSya2QaOoeplDR77JWklgsKxUDXzeOIGkVgSlA TY8c/bl90Wb/WJumRqIDlD/9lk8ln/H3V+x103ha6Fg7isMH3jqCZhq+QYMk/52uaNKJ 1MpqbK7CHN3tQC8szFv2Kk4d7QTf0ihqhCzubkkd/1WfL0F6z1iG8fXlXjsn6odSD7Pt rSTw== X-Gm-Message-State: AO0yUKW+hRbxXBvBTVlCOZ4cCM2UunUZuHzUMW7t4Yyy4bn3bdT/QUK7 VGWx27ZDLcjgzLvL0aJyOw2qZP3+7H4kIB/CR4Sf8A== X-Google-Smtp-Source: AK7set86nD7AHLHjFHADNw68YHO3+pTEXmPYEX73qRUo91NxvyvumPLImtBCeS4GMfu57Ja5MOsxUjtYU3znLSUgghw= X-Received: by 2002:a17:90a:2ec7:b0:22c:419a:f4cd with SMTP id h7-20020a17090a2ec700b0022c419af4cdmr750919pjs.74.1674861577303; Fri, 27 Jan 2023 15:19:37 -0800 (PST) MIME-Version: 1.0 References: <20221221235147.45lkqmosndritfpe@google.com> In-Reply-To: From: Fangrui Song Date: Fri, 27 Jan 2023 18:19:25 -0500 Message-ID: Subject: Re: [PATCH v2] vdso: Improve cmd_vdso_check to check all dynamic relocations To: Arnd Bergmann Cc: christophe.leroy@csgroup.eu, Palmer Dabbelt , luto@kernel.org, tglx@linutronix.de, vincenzo.frascino@arm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, loongarch@lists.linux.dev, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230127_151944_069551_F1B57D07 X-CRM114-Status: GOOD ( 24.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Dec 29, 2022 at 11:22 AM Palmer Dabbelt wrote: > > On Wed, 21 Dec 2022 15:51:47 PST (-0800), maskray@google.com wrote: > > The actual intention is that no dynamic relocation exists. However, some > > GNU ld ports produce unneeded R_*_NONE. (If a port fails to determine > > the exact .rel[a].dyn size, the trailing zeros become R_*_NONE > > relocations. E.g. ld's powerpc port recently fixed > > https://sourceware.org/bugzilla/show_bug.cgi?id=29540) 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.) > > > > Signed-off-by: Fangrui Song > > Reviewed-by: Christophe Leroy > > --- > > Change from v1: > > * rebase after 8ac3b5cd3e0521d92f9755e90d140382fc292510 (lib/vdso: use "grep -E" instead of "egrep") > > * change the commit message to mention an example GNU ld bug; no longer say the patch fixes a deprecated egrep use > > --- > > arch/arm/vdso/Makefile | 3 --- > > arch/arm64/kernel/vdso/Makefile | 3 --- > > arch/arm64/kernel/vdso32/Makefile | 3 --- > > arch/csky/kernel/vdso/Makefile | 3 --- > > arch/loongarch/vdso/Makefile | 3 --- > > arch/mips/vdso/Makefile | 3 --- > > arch/powerpc/kernel/vdso/Makefile | 1 - > > arch/riscv/kernel/vdso/Makefile | 3 --- > > arch/s390/kernel/vdso32/Makefile | 2 -- > > arch/s390/kernel/vdso64/Makefile | 2 -- > > arch/x86/entry/vdso/Makefile | 4 ---- > > lib/vdso/Makefile | 13 ++++--------- > > 12 files changed, 4 insertions(+), 39 deletions(-) > > [snip] > > > diff --git a/arch/riscv/kernel/vdso/Makefile b/arch/riscv/kernel/vdso/Makefile > > index 06e6b27f3bcc..d85c37e11b21 100644 > > --- a/arch/riscv/kernel/vdso/Makefile > > +++ b/arch/riscv/kernel/vdso/Makefile > > @@ -1,9 +1,6 @@ > > # SPDX-License-Identifier: GPL-2.0-only > > # Copied from arch/tile/kernel/vdso/Makefile > > > > -# Absolute relocation type $(ARCH_REL_TYPE_ABS) needs to be defined before > > -# the inclusion of generic Makefile. > > -ARCH_REL_TYPE_ABS := R_RISCV_32|R_RISCV_64|R_RISCV_JUMP_SLOT > > include $(srctree)/lib/vdso/Makefile > > # Symbols present in the vdso > > vdso-syms = rt_sigreturn > > Acked-by: Palmer Dabbelt # RISC-V > > Thanks! Looks like this patch hasn't been picked yet... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel