All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts/mksysmap: Ignore __pi_ local arm64 symbols
@ 2023-06-06 18:19 Pierre-Clément Tosi
  2023-06-07  8:49 ` Ard Biesheuvel
  2023-06-07 12:27 ` Masahiro Yamada
  0 siblings, 2 replies; 3+ messages in thread
From: Pierre-Clément Tosi @ 2023-06-06 18:19 UTC (permalink / raw)
  To: linux-kbuild
  Cc: linux-kernel, Masahiro Yamada, Nick Desaulniers, Ard Biesheuvel,
	ptosi

Similarly to "__kvm_nvhe_", filter out any local symbol that was
prefixed with "__pi_" (generated when CONFIG_RANDOMIZE_BASE=y) when
compiling System.map and in kallsyms.

Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
---
 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] scripts/mksysmap: Ignore __pi_ local arm64 symbols
  2023-06-06 18:19 [PATCH] scripts/mksysmap: Ignore __pi_ local arm64 symbols Pierre-Clément Tosi
@ 2023-06-07  8:49 ` Ard Biesheuvel
  2023-06-07 12:27 ` Masahiro Yamada
  1 sibling, 0 replies; 3+ messages in thread
From: Ard Biesheuvel @ 2023-06-07  8:49 UTC (permalink / raw)
  To: Pierre-Clément Tosi
  Cc: linux-kbuild, linux-kernel, Masahiro Yamada, Nick Desaulniers

On Tue, 6 Jun 2023 at 20:19, Pierre-Clément Tosi <ptosi@google.com> wrote:
>
> Similarly to "__kvm_nvhe_", filter out any local symbol that was
> prefixed with "__pi_" (generated when CONFIG_RANDOMIZE_BASE=y) when
> compiling System.map and in kallsyms.
>
> Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>

Acked-by: Ard Biesheuvel <ardb@kernel.org>

> ---
>  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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] scripts/mksysmap: Ignore __pi_ local arm64 symbols
  2023-06-06 18:19 [PATCH] scripts/mksysmap: Ignore __pi_ local arm64 symbols Pierre-Clément Tosi
  2023-06-07  8:49 ` Ard Biesheuvel
@ 2023-06-07 12:27 ` Masahiro Yamada
  1 sibling, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2023-06-07 12:27 UTC (permalink / raw)
  To: Pierre-Clément Tosi
  Cc: linux-kbuild, linux-kernel, Nick Desaulniers, Ard Biesheuvel

On Wed, Jun 7, 2023 at 3:19 AM Pierre-Clément Tosi <ptosi@google.com> wrote:
>
> Similarly to "__kvm_nvhe_", filter out any local symbol that was
> prefixed with "__pi_" (generated when CONFIG_RANDOMIZE_BASE=y) when
> compiling System.map and in kallsyms.
>
> Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
> ---


Applied to linux-kbuild. Thanks.



>  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



-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-07 12:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-06 18:19 [PATCH] scripts/mksysmap: Ignore __pi_ local arm64 symbols Pierre-Clément Tosi
2023-06-07  8:49 ` Ard Biesheuvel
2023-06-07 12:27 ` Masahiro Yamada

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.