s390/kasan: reipl and kexec support
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 20 Nov 2017 11:15:10 +0000 (12:15 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Oct 2018 09:21:27 +0000 (11:21 +0200)
commitac1256f82619724357242eb514f162c40d5b64d8
tree2d326f11ac4da328f8be5391d90ef7ccbfd5b0c7
parent9e8df6daed9e59153624e52aa4832ddaf39f1ae8
s390/kasan: reipl and kexec support

Some functions from both arch/s390/kernel/ipl.c and
arch/s390/kernel/machine_kexec.c are called without DAT enabled
(or with and without DAT enabled code paths). There is no easy way
to partially disable kasan for those files without a substantial
rework. Disable kasan for both files for now.

To avoid disabling kasan for arch/s390/kernel/diag.c DAT flag is
enabled in diag308 call. pcpu_delegate which disables DAT is marked
with __no_sanitize_address to disable instrumentation for that one
function.

Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/processor.h
arch/s390/kernel/Makefile
arch/s390/kernel/ipl.c
arch/s390/kernel/smp.c