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]
Date:   Fri, 27 May 2022 17:31:46 +0200
From:   Helge Deller <deller@....de>
To:     Masahiro Yamada <masahiroy@...nel.org>,
        linux-kbuild@...r.kernel.org
Cc:     linux-kernel@...r.kernel.org, linux-parisc@...r.kernel.org,
        "James E.J. Bottomley" <James.Bottomley@...senPartnership.com>
Subject: Re: [PATCH] parisc: fix the exit status of arch/parisc/nm

On 5/27/22 16:39, Masahiro Yamada wrote:
> Parisc overrides 'nm' with a shell script. I was hit by a false-positive
> error of $(NM) because this script returns the exit code of grep instead
> of ${CROSS_COMPILE}nm. (grep exits with 1 if no lines were selected)
>
> I tried to fix it, but in the code review, Helge suggested to remove it
> entirely. [1]
>
> This script was added in 2003. [2]
>
> Presumably, it was a workaround for old toolchains (but even the parisc
> maintainer does not know the detail any more).
>
> Hopefully recent tools should work fine.
>
> [1]: https://lore.kernel.org/all/1c12cd26-d8aa-4498-f4c0-29478b9578fe@gmx.de/
> [2]: https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/commit/?id=36eaa6e4c0e0b6950136b956b72fd08155b92ca3
>
> Suggested-by: Helge Deller <deller@....de>
> Signed-off-by: Masahiro Yamada <masahiroy@...nel.org>

Acked-by: Helge Deller <deller@....de>

Thank you!
Helge

> ---
>
> I want to apply this to kbuild tree with Helge's Ack
>
>  arch/parisc/Makefile | 1 -
>  arch/parisc/nm       | 6 ------
>  2 files changed, 7 deletions(-)
>  delete mode 100644 arch/parisc/nm
>
> diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile
> index aca1710fd658..e38d993d87f2 100644
> --- a/arch/parisc/Makefile
> +++ b/arch/parisc/Makefile
> @@ -18,7 +18,6 @@
>  boot := arch/parisc/boot
>  KBUILD_IMAGE := $(boot)/bzImage
>
> -NM		= sh $(srctree)/arch/parisc/nm
>  CHECKFLAGS	+= -D__hppa__=1
>
>  ifdef CONFIG_64BIT
> diff --git a/arch/parisc/nm b/arch/parisc/nm
> deleted file mode 100644
> index c788308de33f..000000000000
> --- a/arch/parisc/nm
> +++ /dev/null
> @@ -1,6 +0,0 @@
> -#!/bin/sh
> -##
> -# Hack to have an nm which removes the local symbols.  We also rely
> -# on this nm being hidden out of the ordinarily executable path
> -##
> -${CROSS_COMPILE}nm $* | grep -v '.LC*[0-9]*$'

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ