lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMj1kXHqXTdm-zdeY7vUxEycQ8zymRSQYZsgOKvi77gC5=nL-A@mail.gmail.com>
Date:   Wed, 7 Jun 2023 10:49:33 +0200
From:   Ard Biesheuvel <ardb@...nel.org>
To:     Pierre-Clément Tosi <ptosi@...gle.com>
Cc:     linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
        Masahiro Yamada <masahiroy@...nel.org>,
        Nick Desaulniers <ndesaulniers@...gle.com>
Subject: Re: [PATCH] scripts/mksysmap: Ignore __pi_ local arm64 symbols

On Tue, 6 Jun 2023 at 20:19, Pierre-Clément Tosi <ptosi@...gle.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@...gle.com>

Acked-by: Ard Biesheuvel <ardb@...nel.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ