s390/kasan: support preemptible kernel build
authorVasily Gorbik <gor@linux.ibm.com>
Fri, 19 Oct 2018 10:13:58 +0000 (12:13 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 22 Oct 2018 06:37:45 +0000 (08:37 +0200)
commitcf3dbe5dacb3a95d497ace9c714306d17cb05b11
tree0b4bb870e5d7c0c09e1a7e8fb797f08530745297
parent63c19be095d0f8eb8992674991e44b4228bd4179
s390/kasan: support preemptible kernel build

When the kernel is built with:
CONFIG_PREEMPT=y
CONFIG_PREEMPT_COUNT=y
"stfle" function used by kasan initialization code makes additional
call to preempt_count_add/preempt_count_sub. To avoid removing kasan
instrumentation from sched code where those functions leave split stfle
function and provide __stfle variant without preemption handling to be
used by Kasan.

Reported-by: Benjamin Block <bblock@linux.ibm.com>
Acked-by: Heiko Carstens <heiko.carstens@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/facility.h
arch/s390/mm/kasan_init.c