]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit72ead0c107fee1d19bd21cda12dbea25330c11ce
treea8e09dfddde0eed16b6665d677d69b55422be560
parentfb8bfa22aa522f247180b74fcd35a1b017d27fbf
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