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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Wed, 10 Mar 2021 01:22:42 +0900
From:   Masahiro Yamada <masahiroy@...nel.org>
To:     Jiri Slaby <jslaby@...e.cz>
Cc:     Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kbuild: dummy-tools, support MPROFILE_KERNEL checks for ppc

On Mon, Mar 8, 2021 at 3:28 PM Jiri Slaby <jslaby@...e.cz> wrote:
>
> ppc64le checks for -mprofile-kernel to define MPROFILE_KERNEL Kconfig.
> Kconfig calls arch/powerpc/tools/gcc-check-mprofile-kernel.sh for that
> purpose. This script performs two checks:
> 1) build with -mprofile-kernel should contain "_mcount"
> 2) build with -mprofile-kernel with a function marked as "notrace"
>    should not produce "_mcount"
>
> So support this in dummy-tools' gcc, so that we have MPROFILE_KERNEL
> always true.
>
> Signed-off-by: Jiri Slaby <jslaby@...e.cz>
> Cc: Masahiro Yamada <masahiroy@...nel.org>

Applied to linux-kbuild/fixes. Thanks.


> ---
>  scripts/dummy-tools/gcc | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/scripts/dummy-tools/gcc b/scripts/dummy-tools/gcc
> index 0d0589cf8184..7b10332b23ba 100755
> --- a/scripts/dummy-tools/gcc
> +++ b/scripts/dummy-tools/gcc
> @@ -73,6 +73,15 @@ if arg_contain -S "$@"; then
>                 echo "%gs"
>                 exit 0
>         fi
> +
> +       # For arch/powerpc/tools/gcc-check-mprofile-kernel.sh
> +       if arg_contain -m64 "$@" && arg_contain -mlittle-endian "$@" &&
> +               arg_contain -mprofile-kernel "$@"; then
> +               if ! test -t 0 && ! grep -q notrace; then
> +                       echo "_mcount"
> +               fi
> +               exit 0
> +       fi
>  fi
>
>  # To set GCC_PLUGINS
> --
> 2.30.1
>



-- 
Best Regards
Masahiro Yamada

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ