android_kernel_samsung_a7y1.../scripts
Vasily Gorbik 61fbcc1742 kallsyms: exclude kasan local symbols on s390
[ Upstream commit 33177f01ca3fe550146bb9001bec2fd806b2f40c ]

gcc asan instrumentation emits the following sequence to store frame pc
when the kernel is built with CONFIG_RELOCATABLE:
debug/vsprintf.s:
        .section        .data.rel.ro.local,"aw"
        .align  8
.LC3:
        .quad   .LASANPC4826@GOTOFF
.text
        .align  8
        .type   number, @function
number:
.LASANPC4826:

and in case reloc is issued for LASANPC label it also gets into .symtab
with the same address as actual function symbol:
$ nm -n vmlinux | grep 0000000001397150
0000000001397150 t .LASANPC4826
0000000001397150 t number

In the end kernel backtraces are almost unreadable:
[  143.748476] Call Trace:
[  143.748484] ([<000000002da3e62c>] .LASANPC2671+0x114/0x190)
[  143.748492]  [<000000002eca1a58>] .LASANPC2612+0x110/0x160
[  143.748502]  [<000000002de9d830>] print_address_description+0x80/0x3b0
[  143.748511]  [<000000002de9dd64>] __kasan_report+0x15c/0x1c8
[  143.748521]  [<000000002ecb56d4>] strrchr+0x34/0x60
[  143.748534]  [<000003ff800a9a40>] kasan_strings+0xb0/0x148 [test_kasan]
[  143.748547]  [<000003ff800a9bba>] kmalloc_tests_init+0xe2/0x528 [test_kasan]
[  143.748555]  [<000000002da2117c>] .LASANPC4069+0x354/0x748
[  143.748563]  [<000000002dbfbb16>] do_init_module+0x136/0x3b0
[  143.748571]  [<000000002dbff3f4>] .LASANPC3191+0x2164/0x25d0
[  143.748580]  [<000000002dbffc4c>] .LASANPC3196+0x184/0x1b8
[  143.748587]  [<000000002ecdf2ec>] system_call+0xd8/0x2d8

Since LASANPC labels are not even unique and get into .symtab only due
to relocs filter them out in kallsyms.

Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-06 20:06:26 +02:00
..
basic A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
coccinelle fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock 2020-04-06 18:47:45 +02:00
dtbtool_exynos Introduce Exynos dtbtool to the Linux build system 2020-03-27 22:20:07 +05:30
dtc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fmp A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gdb A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
genksyms A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kconfig kconfig/[mn]conf: handle backspace (^H) key 2020-04-06 16:41:44 +02:00
ksymoops A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mod modpost: file2alias: check prototype of handler 2020-04-06 15:49:11 +02:00
package A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
selinux A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tracing A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
analyze_suspend.py A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
android-major-version.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
android-version.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
asn1_compiler.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bloat-o-meter A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bootgraph.pl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
check_extable.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
check-lc_ctype.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
checkincludes.pl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
checkkconfigsymbols.py A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
checkpatch.pl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
checkstack.pl scripts/checkstack.pl: Fix arm64 wrong or unknown architecture 2020-04-06 19:16:34 +02:00
checksyscalls.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
checkversion.pl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
clang-android.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cleanfile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cleanpatch A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
coccicheck A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
config A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
conmakehash.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
decode_stacktrace.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
decodecode A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
depmod.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
diffconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
docproc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
export_report.pl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
extract-cert.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
extract-ikconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
extract-module-sig.pl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
extract-sys-certs.pl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
extract-vmlinux A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
find_matching_major.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
find_matching_version.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fips_fmp_hmac.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fips_fmp_utils.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fips_kaslr_fmp_hmac.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gcc-goto.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gcc-ld A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gcc-version.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gcc-x86_32-has-stack-protector.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gcc-x86_64-has-stack-protector.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gen_initramfs_list.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
get_dvb_firmware A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
get_maintainer.pl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gfp-translate A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
headerdep.pl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
headers_check.pl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
headers_install.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
headers.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kallsyms.c kallsyms: exclude kasan local symbols on s390 2020-04-06 20:06:26 +02:00
kaslr_fips_fmp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kaslr_patch.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kbuild.include kbuild: simplify ld-option implementation 2020-04-06 16:38:00 +02:00
kernel-doc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kernel-doc-xml-ref A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ld-version.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Lindent A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
link-vmlinux.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile Introduce Exynos dtbtool to the Linux build system 2020-03-27 22:20:07 +05:30
Makefile.asm-generic A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.build A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.clean A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.dtbinst A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.extrawarn A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.fwinst A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.headersinst A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.help A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.host A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.kasan A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.lib Introduce Exynos dtbtool to the Linux build system 2020-03-27 22:20:07 +05:30
Makefile.modbuiltin A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.modinst A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.modpost A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile.modsign A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
makelst A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
markup_oops.pl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mkcompile_h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mkmakefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mksysmap A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mkuboot.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mkversion A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
module-common.lds A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
namespace.pl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
objdiff A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
patch-kernel A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pnmtologo.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
profile2linkerlist.pl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
recordmcount.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
recordmcount.h recordmcount: Fix spurious mcount entries on powerpc 2020-04-06 20:06:14 +02:00
recordmcount.pl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
replace_dir.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
setlocalversion kbuild: setlocalversion: print error to STDERR 2020-04-06 11:16:41 +02:00
show_delta A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sign-file.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sortextable.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sortextable.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
spelling.txt A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
stackdelta A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
stackusage A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tags.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
unifdef.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ver_linux A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-hypercalls.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xz_wrap.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30