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] [day] [month] [year] [list]
Date:   Sat, 10 Sep 2022 05:34:32 +0900
From:   Masahiro Yamada <masahiroy@...nel.org>
To:     Youling Tang <tangyouling@...ngson.cn>
Cc:     Michal Marek <michal.lkml@...kovi.net>,
        Huacai Chen <chenhuacai@...nel.org>,
        Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        loongarch@...ts.linux.dev,
        Nick Desaulniers <ndesaulniers@...gle.com>,
        Xuerui Wang <kernel@...0n.name>, Xi Ruoyao <xry111@...111.site>
Subject: Re: [PATCH] mksysmap: Fix the mismatch of 'L0' symbols in System.map

On Thu, Sep 1, 2022 at 8:11 PM Youling Tang <tangyouling@...ngson.cn> wrote:
>
> When System.map was generated, the kernel used mksysmap to filter the
> kernel symbols, we need to filter "L0" symbols in LoongArch architecture.
>
> $ cat System.map | grep L0
> 9000000000221540 t L0
>
> The L0 symbol exists in System.map, but not in .tmp_System.map. When
> "cmp -s System.map .tmp_System.map" will show "Inconsistent kallsyms
> data" error message in link-vmlinux.sh script.
>
> Signed-off-by: Youling Tang <tangyouling@...ngson.cn>
> ---
>  scripts/mksysmap | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/mksysmap b/scripts/mksysmap
> index 9aa23d15862a..ad8bbc52267d 100755
> --- a/scripts/mksysmap
> +++ b/scripts/mksysmap
> @@ -41,4 +41,4 @@
>  # so we just ignore them to let readprofile continue to work.
>  # (At least sparc64 has __crc_ in the middle).
>
> -$NM -n $1 | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)\|\( \.L\)' > $2
> +$NM -n $1 | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)\|\( \.L\)\|\( L0\)' > $2
> --
> 2.36.1
>


Applied to linux-kbuild/fixes.
Thanks.



-- 
Best Regards
Masahiro Yamada

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ