s390/smp: kasan stack instrumentation support
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 20 Nov 2017 11:13:52 +0000 (12:13 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Oct 2018 09:21:26 +0000 (11:21 +0200)
commit9e8df6daed9e59153624e52aa4832ddaf39f1ae8
treea8e09dfddde0eed16b6665d677d69b55422be560
parentdde709d1361ab50d3b9f2824f72b4374f5582e84
s390/smp: kasan stack instrumentation support

smp_start_secondary function is called without DAT enabled. To avoid
disabling kasan instrumentation for entire arch/s390/kernel/smp.c
smp_start_secondary has been split in 2 parts. smp_start_secondary has
instrumentation disabled, it does minimal setup and enables DAT. Then
instrumentated __smp_start_secondary is called to do the rest.

__load_psw_mask function instrumentation has been disabled as well
to be able to call it from smp_start_secondary.

Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
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/smp.c