Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp439044rwd; Wed, 7 Jun 2023 01:58:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Lti6TbwMhbwBh/zFrNq57Rs2LMjJTjGjM9UWMw2KR8fRoI25IfCM7tVV+pjnm+uNG54v8 X-Received: by 2002:a92:d98b:0:b0:33b:3486:8402 with SMTP id r11-20020a92d98b000000b0033b34868402mr7197060iln.7.1686128326966; Wed, 07 Jun 2023 01:58:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686128326; cv=none; d=google.com; s=arc-20160816; b=U/BtLzs0OE8zcq3psTQLqDvpVafHfMP2ZgOx9IHCv3j+PSqIo4vr0cKVaeBIJDbeM8 8wEFLAvukvA55FlVwjz9QUKkfgVmOZmihtcCCFvv88sZ5LTxWf3xI6FXJJqd9dIxEYso 7xOsf5L4ViGkOntpn7o+RQoNN7u3ZFB8wxSVLQGCXEHoXAHHsoVFIosANpHguVbodD5u JDfB6RudkQHIixZD/xqQyZGbPbEjDJEGI0TZVtzELXj0Zpb8pYWIFK6BwpOr0tAdOHtF Ca4WBBl1QvIaJTboNQVqshv8BkGVzIlWNa8BBaDC23FpU5MADJPiOcnvr0hcalfvXwsk dujA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=3qUfSfbFFU3ajOH/0xSk6M4X/EblU+PNNzcFQi+89Hw=; b=A+B2/C16GbNxjENk46D1w4+FhQWJ/IMRTS6vYB2lKAqTSHyq2zT3hDec5354PNI8oH PyrH5HCMy3C4As9BhfjXviOn5dm3shmE9CfeRZvjWTXjLFKSnwmzVAbIAwjyRa6ZslE2 /e14EH1BVoREzAhokYBbC7EsigL8/EMCjG8oXEj9M2bAmQKRai2aKjJLHj7/lco048+/ MvRGddJqsLPmAcCkxHcMhn/K2iRMGA5pd1v7ZhDQFKyTALXQT5NXPbvUOUZ2qviiFuf9 7xq5IdOKibHhLGyNwkwSMH2RtjPyRMihnwUoO2if+lorwDp9bn0j/0tgdM1BRX8Uv+LH B9Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dBIjM1ar; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a24-20020aa795b8000000b0063b8935bcbasi8203674pfk.310.2023.06.07.01.58.33; Wed, 07 Jun 2023 01:58:46 -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=@kernel.org header.s=k20201202 header.b=dBIjM1ar; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239624AbjFGIul (ORCPT + 99 others); Wed, 7 Jun 2023 04:50:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239797AbjFGIuD (ORCPT ); Wed, 7 Jun 2023 04:50:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E6121FFF; Wed, 7 Jun 2023 01:49:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3A76963C74; Wed, 7 Jun 2023 08:49:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BD2DC43443; Wed, 7 Jun 2023 08:49:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686127786; bh=RzauY7PSZpPkXiHuZDUOwrDIQtLbNmd9eP5HM3i8tI0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dBIjM1arT92xSFIrDeQ1BGwizxBWdS2O9TBMaZesOanuY0VFDZUd/6ux+bJxn9Te/ az2QUin01W6lN/F3yQ67lOjA8DPqv31Iry5cUvtNl5tol/ErC/brpF04hmDmaXpJDH qjPYM+LMgpCpQg4QAdsG9Ez4a/EkmsbpKgjM2Hh8Bo3mfUclwZdgAu8/ra3lPd5ZiO UHvJT0oUpZo8nb2gVtr5fOquBZKS12FWluobadae1K7ZFiAQs964bGuUoQB5X4+vu6 C+xmGV0vN5QcTtCam1d1BuyPPdHEiIY9hSs5eOtLLDRcGu7bt3uhCElHtnPLcorSCa i4yDFYaF9k/4w== Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2b1b2ca09b9so60950831fa.1; Wed, 07 Jun 2023 01:49:46 -0700 (PDT) X-Gm-Message-State: AC+VfDxVVfEYLEuVe7EtFeYzY43u9Y94Q8rzZPn2IfD+7IIRL9r4uukB Xo6rGyJDXzHmuNzbufg+C7Dp2bhO3nXH/jEVGbs= X-Received: by 2002:a2e:9c13:0:b0:2b1:ec1a:88cc with SMTP id s19-20020a2e9c13000000b002b1ec1a88ccmr2200491lji.3.1686127784581; Wed, 07 Jun 2023 01:49:44 -0700 (PDT) MIME-Version: 1.0 References: <20230606181936.bw62oyqswo7jomra@google.com> In-Reply-To: <20230606181936.bw62oyqswo7jomra@google.com> From: Ard Biesheuvel Date: Wed, 7 Jun 2023 10:49:33 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] scripts/mksysmap: Ignore __pi_ local arm64 symbols To: =?UTF-8?Q?Pierre=2DCl=C3=A9ment_Tosi?= Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Tue, 6 Jun 2023 at 20:19, Pierre-Cl=C3=A9ment Tosi wr= ote: > > Similarly to "__kvm_nvhe_", filter out any local symbol that was > prefixed with "__pi_" (generated when CONFIG_RANDOMIZE_BASE=3Dy) when > compiling System.map and in kallsyms. > > Signed-off-by: Pierre-Cl=C3=A9ment Tosi Acked-by: Ard Biesheuvel > --- > scripts/mksysmap | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/scripts/mksysmap b/scripts/mksysmap > index cb3b1fff3eee..a7de0f637cc7 100755 > --- a/scripts/mksysmap > +++ b/scripts/mksysmap > @@ -40,6 +40,10 @@ ${NM} -n ${1} | sed >${2} -e " > # arm64 EFI stub namespace > / __efistub_/d > > +# arm64 local symbols in PIE namespace > +/ __pi_\\$/d > +/ __pi_\.L/d > + > # arm64 local symbols in non-VHE KVM namespace > / __kvm_nvhe_\$/d > / __kvm_nvhe_\.L/d > -- > 2.41.0.rc0.172.g3f132b7071-goog > > > -- > Pierre